From 9960f2415c8332a594aa6f4d94d6f7763f5650b4 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 25 Oct 2009 22:29:36 +0100 Subject: check for clean repo --- examples/gbp-pull | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3