From: Oleg Broytman Date: Fri, 7 Oct 2016 13:09:02 +0000 (+0300) Subject: pull-usrlocalsrc: pull only master from all remotes X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=47b2ea5de8376314dcfe11daec772834e80a33b4 pull-usrlocalsrc: pull only master from all remotes --- diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc index 41cfaab..04f856d 100755 --- a/pull-usrlocalsrc +++ b/pull-usrlocalsrc @@ -3,6 +3,7 @@ prog_dir="`dirname \"$0\"`" && cat "$prog_dir"/locate-all.list | grep -F /usr/local/src | - echo "----- $d -----"; cd "$d" && git pull --all || exit 1 while read d; do + echo "----- $d -----"; cd "$d" && + git remote | xargs -I'{}' git pull '{}' master || exit 1 done