projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't commit with no mods
[feisty_meow.git]
/
scripts
/
rev_control
/
version_control.sh
diff --git
a/scripts/rev_control/version_control.sh
b/scripts/rev_control/version_control.sh
index 6321dc14a0702a98aba52a3bd76601c5ddddc0e5..0a6ee8fe73d0a99761695d35a08e5325715a7ee5 100644
(file)
--- 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"
# 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
# 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