summaryrefslogtreecommitdiff
path: root/gbp/git/repository.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-27 22:20:04 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-27 22:22:28 +0200
commit71e9e244caabfca463e7898ff684a9861bb5a582 (patch)
tree69b01f123e919f9af063dced2c2e56c73a9bd64d /gbp/git/repository.py
parent59ecaafcfe03bfcda37b1cecfcc98d98383e541c (diff)
GitRepository.commit_dir: raise GitRepositoryError instead of GbpError
and make sure the callers forward the error properly
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r--gbp/git/repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 2983228..78d8701 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1250,7 +1250,7 @@ class GitRepository(object):
commit = self.commit_tree(tree=tree, msg=msg, parents=parents,
author=author, committer=committer)
if not commit:
- raise GbpError("Failed to commit tree")
+ raise GitRepositoryError("Failed to commit tree")
self.update_ref("refs/heads/%s" % branch, commit, cur)
return commit