aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-14 14:10:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-14 14:10:32 -0300
commit750c0f2de721cb636beb8b4822117c4671794f6f (patch)
tree5a6b861149caa7f67f589c0b80b6a46fe15b85c0
parent59b0967b9e52ecb6b51786f35d0a57be091caefe (diff)
downloadutils-git-750c0f2de721cb636beb8b4822117c4671794f6f.tar.gz
utils-git-750c0f2de721cb636beb8b4822117c4671794f6f.tar.bz2
Fetches repo at commit-updates
-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