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