X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=pull-usrlocalsrc;h=2fb2f2f302b04640949acde416184096d7db4f24;hb=d620650e20051859359c8bb1ec26c122261af652;hp=085520632d821711b13f35786d6057eae48e67c9;hpb=2c654e316392a8b3523ea0495902372d54548e1c;p=git-scripts.git diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc index 0855206..2fb2f2f 100755 --- a/pull-usrlocalsrc +++ b/pull-usrlocalsrc @@ -11,9 +11,9 @@ prog_dir="`dirname \"$0\"`" && cat "$prog_dir"/locate-all.list | grep -F /usr/local/src | while read d; do echo "----- $d -----"; cd "$d" && - if has_remote source && has_remote origin; then - git pull source master && git push origin master || exit 1 + if has_remote upstream && has_remote origin; then + git pull upstream master && git push origin master || exit 1 else - git remote | xargs -I'{}' git pull '{}' master || exit 1 + git remote | xargs -I% git pull % master || exit 1 fi done