소스 검색

Handle .gitignore files with \r\n line endings

Segev Finer 7 년 전
부모
커밋
9e3678489d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dulwich/ignore.py

+ 1 - 1
dulwich/ignore.py

@@ -98,7 +98,7 @@ def read_ignore_patterns(f):
     """
 
     for l in f:
-        l = l.rstrip(b"\n")
+        l = l.rstrip(b"\r\n")
 
         # Ignore blank lines, they're used for readability.
         if not l: