diff options
Diffstat (limited to 'examples/gbp-pull')
-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 7aecbed..ed79077 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) |