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 765aa04 commit bc79694Copy full SHA for bc79694
modules/git/tree.go
@@ -75,7 +75,7 @@ func (repo *Repository) GetTreePathLatestCommit(refName, treePath string) (*Comm
75
}
76
77
// rev-parse parses the output of `git rev-parse` command
78
-func (repo *Repository) RevParse(ref string, file string) (string, error) {
+func (repo *Repository) RevParse(ref, file string) (string, error) {
79
stdout, _, err := NewCommand("rev-parse").
80
AddDynamicArguments(ref+":"+file).
81
RunStdString(repo.Ctx, &RunOpts{Dir: repo.Path})
0 commit comments