diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-10-25 22:29:36 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-10-25 22:29:36 +0100 |
commit | 9960f2415c8332a594aa6f4d94d6f7763f5650b4 (patch) | |
tree | 650818df84a8c89be401fc49c8dcc1331efc3f3f /examples | |
parent | eef5eca15f3c77df95d79322f62649ac429a8f35 (diff) | |
download | git-buildpackage-9960f2415c8332a594aa6f4d94d6f7763f5650b4.tar.gz git-buildpackage-9960f2415c8332a594aa6f4d94d6f7763f5650b4.tar.bz2 git-buildpackage-9960f2415c8332a594aa6f4d94d6f7763f5650b4.zip |
check for clean repo
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/gbp-pull | 6 |
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) |