revert: feat: create annotated tags

This reverts commit 4d581fc140.
This commit is contained in:
Pierre Vanduynslager
2019-09-13 14:46:47 -04:00
parent d120eaea8b
commit 0629f3cd8a
5 changed files with 11 additions and 18 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ export function gitTagHead(tagName, execaOpts) {
* @return {String} The sha of the commit associated with `tagName` on the remote repository.
*/
export async function gitRemoteTagHead(repositoryUrl, tagName, execaOpts) {
return (await execa.stdout('git', ['ls-remote', repositoryUrl, `${tagName}^{}`], execaOpts))
return (await execa.stdout('git', ['ls-remote', '--tags', repositoryUrl, tagName], execaOpts))
.split('\n')
.filter(tag => Boolean(tag))
.map(tag => tag.match(/^(\S+)/)[1])[0];