Skip to content

Commit

Permalink
Use osfs.WithBoundOS parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 17, 2024
1 parent 67aa03c commit 4f26e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/git/repo_base_gogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func OpenRepository(ctx context.Context, repoPath string) (*Repository, error) {
if strings.HasSuffix(altPath, "objects") {
altPath = filepath.Dir(altPath)
}
options.AlternatesFS = osfs.New(altPath)
options.AlternatesFS = osfs.New(altPath, osfs.WithBoundOS())
break
}
}
Expand Down

0 comments on commit 4f26e65

Please sign in to comment.