From: Pierre Habouzit Date: Thu, 15 Sep 2011 19:38:49 +0000 (+0200) Subject: auto-fetch mob if it exists X-Git-Url: http://git.madism.org/?p=~madcoder%2Fdotfiles.git;a=commitdiff_plain;h=69771cb02ae941706702f16a7f141a9f6dc7a7f4;hp=a211bdcecaee9921ec9d2c5c456b5415485568cf auto-fetch mob if it exists Signed-off-by: Pierre Habouzit --- diff --git a/+bin/git-up b/+bin/git-up index 35e0e9d..282eb06 100755 --- a/+bin/git-up +++ b/+bin/git-up @@ -52,7 +52,10 @@ case $# in *) usage;; esac -git fetch "${remote}" +git remote update +if git config remote.mob.fetch >/dev/null 2>/dev/null; then + git remote prune mob +fi if test `git rev-list .."${remote}/${branch#refs/heads/}" -- | wc -l` = 0; then echo "Current branch $lbranch is up to date." exit 0