summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2022-12-02 17:49:18 +0900
committerbiao716.wang <biao716.wang@samsung.com>2022-12-02 17:49:18 +0900
commitba7f43cd8011856ce4b055d3f20923e66c640eab (patch)
treeb3eaa7e94968081c06f0bad24689cfd2587f3ae5
parentee957c99c2aa8346c87392aa7547295ce1192a0d (diff)
downloadgit-buildpackage-ba7f43cd8011856ce4b055d3f20923e66c640eab.tar.gz
git-buildpackage-ba7f43cd8011856ce4b055d3f20923e66c640eab.tar.bz2
git-buildpackage-ba7f43cd8011856ce4b055d3f20923e66c640eab.zip
fix run error for gbp
Change-Id: If8a7cfbd61cea46af63612c76b2934774468130a Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-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 64053a55..d52d5c96 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -993,7 +993,7 @@ class GitRepository(object):
capture_stderr=True)
if ret:
raise GitRepositoryError("revision '%s' not found" % name)
- return self.strip_sha1(sha[0].decode(), short)
+ return self.strip_sha1(sha.decode().splitlines()[0], short)
@staticmethod
def strip_sha1(sha1, length=0):