aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommit-updates5
1 files changed, 4 insertions, 1 deletions
diff --git a/commit-updates b/commit-updates
index a6aa245..b033348 100755
--- a/commit-updates
+++ b/commit-updates
@@ -13,10 +13,13 @@ if git status &> /dev/null; then
else
commit "Updates $(basename `pwd`)"
fi
+
+ git fetch --all
else
if [ ! -z "$1" ] && [ -d "$1" ]; then
- ( cd $1 &> /dev/null && commit "Updates $(basename $1)" )
+ ( cd $1 &> /dev/null && commit "Updates $(basename $1)" && git fetch --all )
else
mr commit -m "Updates"
+ mr fetch
fi
fi