commit: c0e84deb2d31fed514d71397cf9034c2f5d29cd0
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 15 00:57:30 2014 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Jun 15 00:57:30 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/toolchain.git;a=commit;h=c0e84deb
skip commit if there are no new files
---
scripts/cronjob.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/cronjob.sh b/scripts/cronjob.sh
index 5295f0f..417c7c6 100755
--- a/scripts/cronjob.sh
+++ b/scripts/cronjob.sh
@@ -8,8 +8,10 @@ set -e
cd "${0%/*}"/..
commit() {
- git add .
- git commit -m "$1" .
+ if [[ -n $(git status --porcelain) ]] ; then
+ git add .
+ git commit -m "$1" .
+ fi
}
doit() {