aboutsummaryrefslogtreecommitdiff
path: root/commit-updates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-14 14:26:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-14 14:26:09 -0300
commitc31d9f1126dd87fefc5d36673a03ddfa753bf2b4 (patch)
treef34baceae0554004ba8200d7e6073e3e48c3ada1 /commit-updates
parentfc6d705e67aaf7489c3465d7cab85dd57b81b0f7 (diff)
downloadutils-git-c31d9f1126dd87fefc5d36673a03ddfa753bf2b4.tar.gz
utils-git-c31d9f1126dd87fefc5d36673a03ddfa753bf2b4.tar.bz2
Auto fetch changes on commit, fix staging check
Diffstat (limited to 'commit-updates')
-rwxr-xr-xcommit-updates4
1 files changed, 1 insertions, 3 deletions
diff --git a/commit-updates b/commit-updates
index b033348..082727d 100755
--- a/commit-updates
+++ b/commit-updates
@@ -13,11 +13,9 @@ 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)" && git fetch --all )
+ ( cd $1 &> /dev/null && commit "Updates $(basename $1)" )
else
mr commit -m "Updates"
mr fetch