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 |
@@ -46,6 +46,13 b' self: super: {' | |||||
46 | ]; |
|
46 | ]; | |
47 | }); |
|
47 | }); | |
48 |
|
48 | |||
|
49 | "dulwich" = super."dulwich".override (attrs: { | |||
|
50 | patches = [ | |||
|
51 | ./patches/dulwich/handle-dir-refs.patch | |||
|
52 | ]; | |||
|
53 | }); | |||
|
54 | ||||
|
55 | ||||
49 | # Avoid that base packages screw up the build process |
|
56 | # Avoid that base packages screw up the build process | |
50 | inherit (basePythonPackages) |
|
57 | inherit (basePythonPackages) | |
51 | setuptools; |
|
58 | setuptools; |
General Comments 0
You need to be logged in to leave comments.
Login now