From 47b2ea5de8376314dcfe11daec772834e80a33b4 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 7 Oct 2016 16:09:02 +0300 Subject: [PATCH] pull-usrlocalsrc: pull only master from all remotes --- pull-usrlocalsrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5