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 72beefd..8110cf1 100644 --- a/repository.go +++ b/repository.go @@ -286,7 +286,7 @@ func dotGitFileToOSFilesystem(path string, fs billy.Filesystem) (billy.Filesyste return nil, fmt.Errorf(".git file has no %s prefix", prefix) } - gitdir := line[len(prefix):] + gitdir := strings.Split(line[len(prefix):], "\n")[0] gitdir = strings.TrimSpace(gitdir) if filepath.IsAbs(gitdir) { return osfs.New(gitdir), nil |