mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
Update modules/git/repo_commit.go
Typo
This commit is contained in:
parent
0f64c5a806
commit
893c2f2d90
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ func (repo *Repository) GetBranchCommitID(name string) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTagCommitID returns last commit ID string of given tag. If the tag is an
|
// GetTagCommitID returns last commit ID string of given tag. If the tag is an
|
||||||
// annoted tag it will return the objectID of that tag instead of the commitID
|
// annotated tag it will return the objectID of that tag instead of the commitID
|
||||||
// the tag is pointing to. `GetTagCommit` handles annoted tags correctly.
|
// the tag is pointing to. `GetTagCommit` handles annotated tags correctly.
|
||||||
func (repo *Repository) GetTagCommitID(name string) (string, error) {
|
func (repo *Repository) GetTagCommitID(name string) (string, error) {
|
||||||
return repo.GetRefCommitID(TagPrefix + name)
|
return repo.GetRefCommitID(TagPrefix + name)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue