mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-12 11:38:00 -05: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
|
||||
// annoted tag it will return the objectID of that tag instead of the commitID
|
||||
// the tag is pointing to. `GetTagCommit` handles annoted tags correctly.
|
||||
// annotated tag it will return the objectID of that tag instead of the commitID
|
||||
// the tag is pointing to. `GetTagCommit` handles annotated tags correctly.
|
||||
func (repo *Repository) GetTagCommitID(name string) (string, error) {
|
||||
return repo.GetRefCommitID(TagPrefix + name)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue