Fix update_ghidra_head script git output parsing

Python string split behaves differently than I assumed:

>>> "".split("\n")
['']

returns a list of size 1 but

>>> "".split()
[]

returns size 0 and

>>> "".splitlines()
[]

also returns size 0
This commit is contained in:
Eric Kilmer
2022-12-19 11:05:48 -05:00
parent 316c91ccfb
commit 2c197599aa
+1 -1
View File
@@ -69,7 +69,7 @@ def git_get_changed_files(
)
.stdout.decode()
.strip()
.split("\n")
.splitlines()
)
num_changed = len(changed_files)
if num_changed > 0: