summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-10-25 22:29:36 +0100
committerGuido Günther <agx@sigxcpu.org>2009-10-25 22:29:36 +0100
commit9960f2415c8332a594aa6f4d94d6f7763f5650b4 (patch)
tree650818df84a8c89be401fc49c8dcc1331efc3f3f /examples
parenteef5eca15f3c77df95d79322f62649ac429a8f35 (diff)
downloadgit-buildpackage-9960f2415c8332a594aa6f4d94d6f7763f5650b4.tar.gz
git-buildpackage-9960f2415c8332a594aa6f4d94d6f7763f5650b4.tar.bz2
git-buildpackage-9960f2415c8332a594aa6f4d94d6f7763f5650b4.zip
check for clean repo
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-pull6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/gbp-pull b/examples/gbp-pull
index 7aecbed0..ed79077b 100755
--- a/examples/gbp-pull
+++ b/examples/gbp-pull
@@ -79,6 +79,12 @@ def main(argv):
if repo.has_branch(pristine_tar) and options.pristine_tar:
branches += [ pristine_tar ]
+ (ret, out) = repo.is_clean()
+ if not ret:
+ print >>sys.stderr, "You have uncommitted changes in your source tree:"
+ print >>sys.stderr, out
+ raise GbpError
+
GitFetch()()
for branch in branches:
fast_forward_branch(branch, repo, options)