Recursive find respository
This commit is contained in:
parent
9cd1d129bc
commit
80ad996dc1
|
@ -24,7 +24,7 @@ func OpenRepository(path string) (*Repository, error) {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
defer runtime.UnlockOSThread()
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
ret := C.git_repository_open(&repo.ptr, cpath)
|
ret := C.git_repository_open_ext(&repo.ptr, cpath, 0, nil)
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
return nil, MakeGitError(ret)
|
return nil, MakeGitError(ret)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue