Show More
@@ -0,0 +1,15 b'' | |||
|
1 | This patch allows handling directories inside the refs/heads. This was added in dulwich | |
|
2 | 0.19.X series | |
|
3 | ||
|
4 | diff -rup dulwich-0.13.0-orig/dulwich/refs.py dulwich-0.13.0/dulwich/refs.py | |
|
5 | --- dulwich-0.13.0-orig/dulwich/refs.py 2018-10-09 09:42:38.182597268 +0200 | |
|
6 | +++ dulwich-0.13.0/dulwich/refs.py 2018-10-09 09:43:39.057145566 +0200 | |
|
7 | @@ -509,7 +509,7 @@ class DiskRefsContainer(RefsContainer): | |
|
8 | # Read only the first 40 bytes | |
|
9 | return header + f.read(40 - len(SYMREF)) | |
|
10 | except IOError as e: | |
|
11 | - if e.errno == errno.ENOENT: | |
|
12 | + if e.errno in (errno.ENOENT, errno.EISDIR): | |
|
13 | return None | |
|
14 | raise | |
|
15 |
General Comments 0
You need to be logged in to leave comments.
Login now