diff options
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.go b/repository.go index d954333..36fc1f5 100644 --- a/repository.go +++ b/repository.go @@ -281,7 +281,7 @@ func dotGitToOSFilesystems(path string, detect bool) (dot, wt billy.Filesystem, pathinfo, err := os.Stat(path) if !os.IsNotExist(err) { - if !pathinfo.IsDir() { + if !pathinfo.IsDir() && detect { path = filepath.Dir(path) } } |