diff options
author | Richard Mahn <richmahn@users.noreply.github.com> | 2019-08-27 01:01:16 -0400 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-08-27 07:01:16 +0200 |
commit | bb423f9350c5e3b0447d916919459ac9d87ee44d (patch) | |
tree | 07052f68adb0e0115e562fd54a38dd841218a90c | |
parent | 4d6c8d9b13708f6fa71dab0491324b28527b34f7 (diff) | |
download | gitea-bb423f9350c5e3b0447d916919459ac9d87ee44d.tar.gz gitea-bb423f9350c5e3b0447d916919459ac9d87ee44d.zip |
Backport for #7945 (#7994)
-rw-r--r-- | modules/git/repo_tag.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_tag.go b/modules/git/repo_tag.go index 20c36bd708..91a7a0cd50 100644 --- a/modules/git/repo_tag.go +++ b/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 } |