Skip to content

Commit

Permalink
Fix git.status
Browse files Browse the repository at this point in the history
Strip lines of the stdout
  • Loading branch information
Akirathan committed Feb 28, 2024
1 parent 45d68fc commit 76802d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/performance/engine-benchmarks/bench_tool/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ async def status(repo: Path) -> GitStatus:
modified: Set[str] = set()
added: Set[str] = set()
for line in lines:
line = line.strip()
if line.startswith("??"):
untracked.add(line.split()[1])
elif line.startswith(" M"):
elif line.startswith("M "):
modified.add(line.split()[1])
elif line.startswith("A "):
added.add(line.split()[1])
Expand Down

0 comments on commit 76802d3

Please sign in to comment.