]> git.phdru.name Git - git-scripts.git/blobdiff - pull-usrlocalsrc
Feat(pull-usrlocalsrc): Use fixed remote `origin`
[git-scripts.git] / pull-usrlocalsrc
index 92156d9e1f22510ad3254ae0a2485450c92624b9..1413803bf598da1d04b88d1777ab870b29401156 100755 (executable)
@@ -1,7 +1,5 @@
 #! /bin/sh
 
-PATH=/usr/local/src/Python/git-remote-hg:$PATH
-
 has_remote() {
    git remote show "$1" >/dev/null 2>&1
 }
@@ -13,7 +11,7 @@ while read d; do
    echo "----- $d -----"; cd "$d" &&
    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
+   elif has_remote origin; then
+      git pull origin master || exit 1
    fi
 done