fix upstream branch names
This commit is contained in:
parent
791c1d9e0b
commit
2f2af2e0c0
1 changed files with 1 additions and 1 deletions
2
gis
2
gis
|
|
@ -183,7 +183,7 @@ for dir in "${git_dirs[@]}"; do
|
|||
|
||||
# Get origin head
|
||||
if git symbolic-ref refs/remotes/origin/HEAD > /dev/null 2>&1; then
|
||||
[[ $(git symbolic-ref refs/remotes/origin/HEAD) =~ \/([^\/]*)$ ]] &>/dev/null && origin_head="${BASH_REMATCH[1]}"
|
||||
[[ $(git symbolic-ref refs/remotes/origin/HEAD) =~ refs/remotes/origin/(.*)$ ]] &>/dev/null && origin_head="${BASH_REMATCH[1]}"
|
||||
else
|
||||
origin_head="$current_branch"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue