mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 08:12:56 +00:00
Backported alphacc's fix for el7/cbs and bash 4.2 (ca63b53c8b
)
Signed-off-by: Fabian Arrotin <arrfab@centos.org>
This commit is contained in:
parent
8ffd801904
commit
ae9a7e62f9
1 changed files with 2 additions and 2 deletions
|
@ -139,9 +139,9 @@ else
|
|||
if [ ".${line:0:1}" = ".*" ]
|
||||
then
|
||||
# current branch, put it first
|
||||
branches=("$branch" "${branches[@]}")
|
||||
branches=("${branch}" ${branches[@]+"${branches[@]}"})
|
||||
else
|
||||
branches=("${branches[@]}" "$branch")
|
||||
branches=(${branches[@]+"${branches[@]}"} "${branch}")
|
||||
fi
|
||||
done <<< "$(git branch -r --contains HEAD | sed 's#origin/##g')"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue