]> git.phdru.name Git - git-scripts.git/commitdiff
Style(update-remotes): Move `branches`
authorOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 13:21:44 +0000 (16:21 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 13:21:44 +0000 (16:21 +0300)
update-remotes

index 710fed772525dccee13016fba710aed5f978017b..ead8e91ee756c689015838bff5866b339b08476a 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 set -e
 
+branches="master ${1:+$@}"
 current="`git config --get --path remote.current.url`" || :
 origin="`git config --get --path remote.origin.url`" || :
-branches="master ${1:+$@}"
 
 if [ -n "$origin" ]; then
     if [ -n "$current" ]; then