Skip to content

Commit 4f26e65

Browse files
committed
Use osfs.WithBoundOS parameter
1 parent 67aa03c commit 4f26e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_base_gogit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func OpenRepository(ctx context.Context, repoPath string) (*Repository, error) {
8181
if strings.HasSuffix(altPath, "objects") {
8282
altPath = filepath.Dir(altPath)
8383
}
84-
options.AlternatesFS = osfs.New(altPath)
84+
options.AlternatesFS = osfs.New(altPath, osfs.WithBoundOS())
8585
break
8686
}
8787
}

0 commit comments

Comments
 (0)