Skip to content

Commit 09b6e91

Browse files
committed
please.sh build_mingw_w64_git: use correct tip rev
We actually want to fall back to using `HEAD`, not override any provided rev with `HEAD`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent afcb852 commit 09b6e91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

please.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5035,10 +5035,10 @@ build_mingw_w64_git () { # [--only-32-bit] [--only-64-bit] [--skip-test-artifact
50355035
git clone --depth 1 --single-branch -b master https://github.com/git-for-windows/MINGW-packages /usr/src/MINGW-packages ||
50365036
die "Could not clone MINGW-packages\n"
50375037
5038-
tag="$(git for-each-ref --format '%(refname:short)' --points-at="${1:+HEAD}" 'refs/tags/v[0-9]*')"
5038+
tag="$(git for-each-ref --format '%(refname:short)' --points-at="${1:-HEAD}" 'refs/tags/v[0-9]*')"
50395039
test -n "$tag" || {
5040-
tag=$(git describe --match=v* "${1:+HEAD}" | sed 's/-.*//').$(date +%Y%m%d%H%M%S) &&
5041-
git tag $tag "${1:+HEAD}"
5040+
tag=$(git describe --match=v* "${1:-HEAD}" | sed 's/-.*//').$(date +%Y%m%d%H%M%S) &&
5041+
git tag $tag "${1:-HEAD}"
50425042
} ||
50435043
die "Could not create tag\n"
50445044

0 commit comments

Comments
 (0)