summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonathan <jonathan@mullvad.net>2022-05-10 11:07:14 +0200
committerJonathan <jonathan@mullvad.net>2022-05-10 11:07:14 +0200
commite78d14efc39296dea270cae6e85a3deb134a884e (patch)
tree73c93dc8bbd7c226d4335cd081aef0b06971e32f
parentc550a35537c25cc737240c46873605f823ab4f98 (diff)
downloadmullvadvpn-e78d14efc39296dea270cae6e85a3deb134a884e.tar.xz
mullvadvpn-e78d14efc39296dea270cae6e85a3deb134a884e.zip
Add argument HEAD to git tag --points-at HEAD
`git tag --points-at` does not default to HEAD on earlier git versions
-rwxr-xr-xbuild.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 1f07dbb332..a12d53157f 100755
--- a/build.sh
+++ b/build.sh
@@ -379,8 +379,7 @@ esac
popd
SEMVER_VERSION=$(echo "$PRODUCT_VERSION" | sed -Ee 's/($|-.*)/.0\1/g')
-# `git tag --points-at` defaults to point at HEAD
-current_head_commit_tag=$(git tag --points-at)
+current_head_commit_tag=$(git tag --points-at HEAD)
for semver_path in dist/*"$SEMVER_VERSION"*; do
# If there is a tag for this commit then we append that to the produced artifacts
# We don't want to change the actual PRODUCT_VERSION as metadata in the form of +<metadata> is ignored by electron builder etc