Skip to content

Commit d35998f

Browse files
committed
fix: fix beginning whitespace error
1 parent 4d07031 commit d35998f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/diff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def _handle_diff_line(lines_bytes: bytes, repo: "Repo", index: DiffIndex["Diff"]
695695
change_type: Lit_change_type = cast(Lit_change_type, _change_type[0])
696696
score_str = "".join(_change_type[1:])
697697
score = int(score_str) if score_str.isdigit() else None
698-
path = path.strip()
698+
path = path.strip("\n")
699699
a_path = path.encode(defenc)
700700
b_path = path.encode(defenc)
701701
deleted_file = False

0 commit comments

Comments
 (0)