Skip to content

Commit

Permalink
fix/mainfest_patter_clean (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Mar 23, 2024
1 parent 47bf304 commit 8237cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versionmgr/worktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ type TreeManifest struct {

func (workTree *WorkTree) GetTreeManifest(ctx context.Context, pattern string) (TreeManifest, error) {
//todo match all files, it maybe slow maybe need a new algo like filepath.Glob
pattern = strings.ReplaceAll(pattern, "\\", "/")
pattern = CleanPath(pattern)
wk := FileWalk{curNode: workTree.root, object: workTree.object}
g, err := glob.Compile(pattern)
if err != nil {
Expand Down

0 comments on commit 8237cb1

Please sign in to comment.