diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2023-09-14 13:27:00 +0200 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2023-09-14 13:27:00 +0200 |
commit | 691c27ee4a50f70634a0b194796724d141b96842 (patch) | |
tree | 2dbd21546266191e4f8836003a5adee7b22e7554 | |
parent | ba67c11e6054062a5a5258bc628265fa394e12c6 (diff) | |
download | git-buildpackage-691c27ee4a50f70634a0b194796724d141b96842.tar.gz git-buildpackage-691c27ee4a50f70634a0b194796724d141b96842.tar.bz2 git-buildpackage-691c27ee4a50f70634a0b194796724d141b96842.zip |
Fix gbs export error
Decode second file paths for R and C statuses too
Change-Id: I27dd3ef66039ae15229d38509a18dfe2ea025c81
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r-- | gbp/git/repository.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index cb1b041b..4d82d28a 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1857,12 +1857,12 @@ class GitRepository(object): while elements[0] != b'': status = elements.pop(0).decode()[0] - filepath = elements.pop(0) + filepath = elements.pop(0).decode() # Expect to have two filenames for renames and copies if status in ['R', 'C']: result[status].append(filepath) - filepath = elements.pop(0) - result[status].append(filepath.decode()) + filepath = elements.pop(0).decode() + result[status].append(filepath) return result #} |