X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fversion_control.sh;h=0a6ee8fe73d0a99761695d35a08e5325715a7ee5;hb=d4a62cbb9a5841c8b2777014407cc0ed4257653d;hp=6321dc14a0702a98aba52a3bd76601c5ddddc0e5;hpb=f5d845d81352418af0785b85412a35888c82486f;p=feisty_meow.git diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 6321dc14..0a6ee8fe 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -84,9 +84,13 @@ function do_checkin() # snag all new files. not to everyone's liking. git add --all . test_or_die "git add all new files" - # tell git about all the files and get a check-in comment. - git commit . - test_or_die "git commit" + + # see if there are any changes in the local repository. + if ! git diff-index --quiet HEAD --; then + # tell git about all the files and get a check-in comment. + git commit . + test_or_die "git commit" + fi # upload the files to the server so others can see them. git push 2>&1 | grep -v "X11 forwarding request failed" if [ ${PIPESTATUS[0]} -ne 0 ]; then false; fi