Browse Source

Backport for #7945 (#7994)

tags/v1.9.3
Richard Mahn 6 years ago committed by Antoine GIRARD
parent
commit
bb423f9350
  1. 2
      modules/git/repo_tag.go

2
modules/git/repo_tag.go

@ -153,7 +153,7 @@ func (repo *Repository) GetTagNameBySHA(sha string) (string, error) {
// GetTagID returns the object ID for a tag (annotated tags have both an object SHA AND a commit SHA)
func (repo *Repository) GetTagID(name string) (string, error) {
stdout, err := NewCommand("show-ref", "--", name).RunInDir(repo.Path)
stdout, err := NewCommand("show-ref", "--tags", "--", name).RunInDir(repo.Path)
if err != nil {
return "", err
}

Loading…
Cancel
Save