projects
/
~madcoder
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a211bdc
)
auto-fetch mob if it exists
author
Pierre Habouzit
<madcoder@debian.org>
Thu, 15 Sep 2011 19:38:49 +0000
(21:38 +0200)
committer
Pierre Habouzit
<madcoder@debian.org>
Thu, 15 Sep 2011 19:38:49 +0000
(21:38 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
+bin/git-up
patch
|
blob
|
history
diff --git
a/+bin/git-up
b/+bin/git-up
index
35e0e9d
..
282eb06
100755
(executable)
--- a/
+bin/git-up
+++ b/
+bin/git-up
@@
-52,7
+52,10
@@
case $# in
*) usage;;
esac
*) 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
if test `git rev-list .."${remote}/${branch#refs/heads/}" -- | wc -l` = 0; then
echo "Current branch $lbranch is up to date."
exit 0