mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 19:08:29 +02:00
formatting
This commit is contained in:
parent
2bcb546ca3
commit
a9c8ce990e
@ -75,7 +75,7 @@ func (repo *Repository) GetTreePathLatestCommit(refName, treePath string) (*Comm
|
|||||||
}
|
}
|
||||||
|
|
||||||
// rev-parse parses the output of `git rev-parse` command
|
// rev-parse parses the output of `git rev-parse` command
|
||||||
func (repo *Repository) RevParse(ref string, file string) (string, error) {
|
func (repo *Repository) RevParse(ref, file string) (string, error) {
|
||||||
stdout, _, err := NewCommand("rev-parse").
|
stdout, _, err := NewCommand("rev-parse").
|
||||||
AddDynamicArguments(ref+":"+file).
|
AddDynamicArguments(ref+":"+file).
|
||||||
RunStdString(repo.Ctx, &RunOpts{Dir: repo.Path})
|
RunStdString(repo.Ctx, &RunOpts{Dir: repo.Path})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user