dulwich does not honour Repo.init[_bare](.., mkdir=True)
Bug #671159 reported by
yvesf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dulwich |
Fix Released
|
Medium
|
Unassigned |
Bug Description
the mkdir flag is never used
@classmethod
def init(cls, path, mkdir=True):
controldir = os.path.join(path, ".git")
return cls(path)
@classmethod
def init_bare(cls, path, mkdir=True):
for d in BASE_DIRECTORIES:
return ret
Changed in dulwich: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in dulwich: | |
status: | Triaged → Fix Committed |
milestone: | none → 0.7.0 |
Changed in dulwich: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Looks like this was fixed in 612e26d3.
I'll mail a patch today that does a recursive mkdir to be consistent with C git: bar/baz/ quux/.git/
$ ls foo
ls: cannot access foo: No such file or directory
$ git init foo/bar/baz/quux
Initialized empty Git repository in /tmp/foo/