Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎git/diff.py‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /