aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommit3
-rwxr-xr-xcommit-updates4
2 files changed, 4 insertions, 3 deletions
diff --git a/commit b/commit
index ccf03f6..e7026b6 100755
--- a/commit
+++ b/commit
@@ -131,6 +131,8 @@ function git_commit {
# If there are no staged files, commit everything.
# Otherwise commit just what was staged
if git status --short | grep -q "^[AM]"; then
+ flag=""
+ else
flag="-a"
fi
@@ -148,5 +150,6 @@ if [ ! -z "$1" ]; then
git_user
git_commit $*
git_push
+ git fetch --all
fi
fi
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