We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47bf304 commit 8237cb1Copy full SHA for 8237cb1
versionmgr/worktree.go
@@ -450,7 +450,7 @@ type TreeManifest struct {
450
451
func (workTree *WorkTree) GetTreeManifest(ctx context.Context, pattern string) (TreeManifest, error) {
452
//todo match all files, it maybe slow maybe need a new algo like filepath.Glob
453
- pattern = strings.ReplaceAll(pattern, "\\", "/")
+ pattern = CleanPath(pattern)
454
wk := FileWalk{curNode: workTree.root, object: workTree.object}
455
g, err := glob.Compile(pattern)
456
if err != nil {
0 commit comments