History

tools/merge-all-source-plugins: Fix merge_internal() return code

Michael Niedermayer committed 1 year ago

Commit 3e05b891 parent 4a3e5ea1 file · +5 −2Browse files

Unified · Split

tools/merge-all-source-plugins+5−2
@@ -2,8 +2,11 @@ · 1 unmodified line
22
33 #If a version is set then we only try merging a source plugin with matching version as a generic one could change the ABI to master HEAD
44 merge_internal(){ # $1=repository, $2=refspec
5− [ -n "$version" ] && git pull --no-rebase --log --stat --commit --no-edit $1 sourceplugin-$2-$version
6− [ -z "$version" ] && git pull --no-rebase --log --stat --commit --no-edit $1 sourceplugin-$2
5+ branch="sourceplugin-$2"
6+ if [ -n "$version" ] ; then
7+ branch="$branch-$version"
8+ fi
9+ git pull --no-rebase --log --stat --commit --no-edit "$1" "$branch"
710 }
811
912 unset succeeded failed version

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t