diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-07-02 11:59:33 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-07-02 17:04:09 +0200 |
commit | 2c668bfe24e01697b7cdba0b621f1a1fcd99e093 (patch) | |
tree | dcb6c00ec60851c8b6c2194b73ac20c2a2cd9223 | |
parent | e6e0150e07be32b91624b460b67be39b8f6b0ab9 (diff) | |
download | git-buildpackage-2c668bfe24e01697b7cdba0b621f1a1fcd99e093.tar.gz git-buildpackage-2c668bfe24e01697b7cdba0b621f1a1fcd99e093.tar.bz2 git-buildpackage-2c668bfe24e01697b7cdba0b621f1a1fcd99e093.zip |
GitRepository/get_commit_info: check return value of git command correctly
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | gbp/git/repository.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 09929a83..d4f9460b 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1195,7 +1195,7 @@ class GitRepository(object): args = GitArgs('--pretty=format:%an%x00%ae%x00%s%x00%b%x00', '-z', '--quiet', commit) out, err, ret = self._git_inout('show', args.args) - if ret > 1: + if ret: raise GitRepositoryError("Unable to retrieve commit info for %s" % commit) |