Commit 8bbf311e by Julien Lhermitte Committed by GitHub

fix(git): get commit sha of git commit from annotated tags (#1948)

* fix(git): have annotated tags resolve to the commit sha

* fix(git): fix quote

* fix(git): change to rev-parse
parent d0a8aeda
...@@ -229,7 +229,9 @@ class Git: ...@@ -229,7 +229,9 @@ class Git:
folder.as_posix(), folder.as_posix(),
] ]
args += ["rev-parse", rev] # We need "^{commit}" to ensure that the commit SHA of the commit the
# tag points to is returned, even in the case of annotated tags.
args += ["rev-parse", rev + "^{commit}"]
return self.run(*args) return self.run(*args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment