From 69771cb02ae941706702f16a7f141a9f6dc7a7f4 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Thu, 15 Sep 2011 21:38:49 +0200 Subject: [PATCH] auto-fetch mob if it exists Signed-off-by: Pierre Habouzit --- +bin/git-up | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.20.1