aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtask-git.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/task-git.sh b/task-git.sh
index 0e51278..491757c 100755
--- a/task-git.sh
+++ b/task-git.sh
@@ -96,9 +96,6 @@ if [ "$PULL" == 1 ]; then
exit 0
fi
-# Call task, commit files and push if flag is set.
-/usr/bin/task $@
-
# Add to git
git add . > $LOGFILE
git commit -m "$TASK_COMMAND" > $LOGFILE
@@ -109,6 +106,9 @@ if [ "$PUSH" == 1 ]; then
git push origin master > $LOGFILE
fi
+# Call task
+/usr/bin/task $@
+
popd > $LOGFILE
exit 0