diff options
Diffstat (limited to 'modules/git/tree.go')
-rw-r--r-- | modules/git/tree.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/tree.go b/modules/git/tree.go index dd73afadcd..f34e0554d7 100644 --- a/modules/git/tree.go +++ b/modules/git/tree.go @@ -49,7 +49,7 @@ func (t *Tree) SubTree(rpath string) (*Tree, error) { // LsTree checks if the given filenames are in the tree func (repo *Repository) LsTree(ref string, filenames ...string) ([]string, error) { - cmd := NewCommandContext(repo.Ctx, "ls-tree", "-z", "--name-only", "--", ref) + cmd := NewCommand(repo.Ctx, "ls-tree", "-z", "--name-only", "--", ref) for _, arg := range filenames { if arg != "" { cmd.AddArguments(arg) |