[openstack-nova] maint: ensure the repo is clean before auto merging patches

Pádraig Brady pbrady at fedoraproject.org
Thu Jan 26 12:33:46 UTC 2012


commit 045f6d7ae912ff9666b7766ab9efd16b27d070e4
Author: Pádraig Brady <P at draigBrady.com>
Date:   Thu Jan 26 12:09:56 2012 +0000

    maint: ensure the repo is clean before auto merging patches

 update-patches.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/update-patches.sh b/update-patches.sh
index 893e2c8..1cec265 100755
--- a/update-patches.sh
+++ b/update-patches.sh
@@ -18,6 +18,11 @@
 #   $> git push fedora-openstack +master-patches:master
 #
 
+git status -uno --porcelain | grep . && {
+    echo "The repo is not clean. Aborting" >&2
+    exit 1
+}
+
 spec=$(fedpkg gimmespec)
 branch=$(git branch | awk '/^\* / {print $2}')
 patches_branch="${branch}-patches"


More information about the scm-commits mailing list