Fix gbs export error 72/298872/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 14 Sep 2023 11:27:00 +0000 (13:27 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 14 Sep 2023 11:27:00 +0000 (13:27 +0200)
Decode second file paths for R and C statuses too

Change-Id: I27dd3ef66039ae15229d38509a18dfe2ea025c81
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
gbp/git/repository.py

index cb1b041..4d82d28 100644 (file)
@@ -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
 #}