public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/toolchain:master commit in: scripts/
Date: Sun, 15 Jun 2014 00:58:20 +0000 (UTC)	[thread overview]
Message-ID: <1402793850.c0e84deb2d31fed514d71397cf9034c2f5d29cd0.vapier@gentoo> (raw)

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() {


             reply	other threads:[~2014-06-15  0:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-15  0:58 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-14 21:40 [gentoo-commits] proj/toolchain:master commit in: scripts/ Mike Frysinger
2016-01-14 21:40 Mike Frysinger
2015-07-15  4:11 Mike Frysinger
2015-04-23 19:42 Mike Frysinger
2015-04-13  4:14 Mike Frysinger
2014-10-24  5:26 Mike Frysinger
2014-10-17  4:06 Mike Frysinger
2014-10-17  4:05 Mike Frysinger
2014-06-15  0:57 Mike Frysinger
2014-06-15  0:55 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402793850.c0e84deb2d31fed514d71397cf9034c2f5d29cd0.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox