diff options
author | Sascha Silbe <silbe@buildslave-debian-squeeze-32bit.sugarlabs.org> | 2010-07-14 16:16:01 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@buildslave-debian-squeeze-32bit.sugarlabs.org> | 2010-07-14 16:18:55 (GMT) |
commit | b9fb06887644abbf5a3bc8fd3251e1919dc56145 (patch) | |
tree | 25756ba67b27a68ed6b973880d0c103b5bb32896 /build-snapshots | |
parent | 2ac05fdf0b8b95f1c6724f47572a12a446b95476 (diff) |
skip build if there are no source changes
Diffstat (limited to 'build-snapshots')
-rwxr-xr-x | build-snapshots | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build-snapshots b/build-snapshots index 756dd50..add057c 100755 --- a/build-snapshots +++ b/build-snapshots @@ -10,6 +10,10 @@ repo_update() { git checkout upstream git merge upstream/master git checkout master + if [ -z "$(git log master..upstream)" ] ; then + echo 'No source changes => skipping build' + return 1 + fi git tag -f pre-merge master git merge upstream } |