Skip to content

Commit 421011f

Browse files
committed
Fix bug
1 parent 7d8a0e8 commit 421011f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/tree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (repo *Repository) LsTree(ref string, filenames ...string) ([]string, error
6666
// GetTreePathLatestCommitID returns the latest commit of a tree path
6767
func (repo *Repository) GetTreePathLatestCommit(refName, treePath string) (*Commit, error) {
6868
stdout, _, err := NewCommand(repo.Ctx, "rev-list", "-1").
69-
AddDynamicArguments(refName).AddArguments("--").AddDynamicArguments(treePath).
69+
AddDynamicArguments(refName).AddDashesAndList(treePath).
7070
RunStdString(&RunOpts{Dir: repo.Path})
7171
if err != nil {
7272
return nil, err

0 commit comments

Comments
 (0)