]> rtime.felk.cvut.cz Git - sojka/duhome.git/commitdiff
Do not fail if there is nothing to commit
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 17 Mar 2013 07:19:42 +0000 (08:19 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 17 Mar 2013 07:19:42 +0000 (08:19 +0100)
duhome

diff --git a/duhome b/duhome
index 01310eb32d8e612b72a61575a02bf4a6db837c6d..a50354791aa9b42ec63f28a4349a1c03ff4f3b26 100755 (executable)
--- a/duhome
+++ b/duhome
@@ -21,7 +21,7 @@ case "$1" in
        cd $DATA
        shift
        GIT_AUTHOR_NAME="$0" GIT_AUTHOR_EMAIL="$USER@$(hostname -f)" \
-           git commit -m 'Automatic commit' "$@"
+           git commit --quite -m 'Automatic commit' "$@" || :
        ;;
     status)
        cd $DATA