Skip to content

Commit

Permalink
[Git] Strip filename after splitting a line.
Browse files Browse the repository at this point in the history
Fixes #1084
  • Loading branch information
auxsvr authored and Alexander-Miller committed Feb 14, 2024
1 parent 3fe1329 commit cda980b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/treemacs-git-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def main():
# reduce the state to a single-letter-string
state = state[0:1]

filename = filename.strip()
# sometimes git outputs quoted filesnames
if filename.startswith(b'"'):
filename = filename[1:-1]
Expand Down

0 comments on commit cda980b

Please sign in to comment.