mirror of
https://github.com/lifting-bits/sleigh
synced 2026-06-21 13:56:12 +00:00
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:
@@ -69,7 +69,7 @@ def git_get_changed_files(
|
||||
)
|
||||
.stdout.decode()
|
||||
.strip()
|
||||
.split("\n")
|
||||
.splitlines()
|
||||
)
|
||||
num_changed = len(changed_files)
|
||||
if num_changed > 0:
|
||||
|
||||
Reference in New Issue
Block a user