Skip to content

Commit

Permalink
feat(delete-tag): get default remote from git config if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vanpipy committed Nov 7, 2020
1 parent 171d069 commit 098099d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/git-delete-tag
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
# Assert there is at least one tag provided
test -z $1 && echo "tag required." 1>&2 && exit 1

# Set the default origin
origin="origin"

# Detect the defalt remote exist or not
defualt_remote=$(git config git-extras.default-remote)

if [[ ! -z "$defualt_remote" ]]; then
origin="$defualt_remote"
fi

# Concatenate all the tag references
local_tags=""
origin_refs=""
Expand Down

0 comments on commit 098099d

Please sign in to comment.