Skip to content

Commit 6fb2318

Browse files
committed
Reference HEAD in Makefile (more portable than head)
This fixes "fatal: ambiguous argument 'head'", which occurs on some systems, inclding GNU/Linux systems, with "git rev-parse head".
1 parent 25597cb commit 6fb2318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ clean:
99
release: clean
1010
# Check if latest tag is the current head we're releasing
1111
echo "Latest tag = $$(git tag | sort -nr | head -n1)"
12-
echo "HEAD SHA = $$(git rev-parse head)"
12+
echo "HEAD SHA = $$(git rev-parse HEAD)"
1313
echo "Latest tag SHA = $$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
14-
@test "$$(git rev-parse head)" = "$$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
14+
@test "$$(git rev-parse HEAD)" = "$$(git tag | sort -nr | head -n1 | xargs git rev-parse)"
1515
make force_release
1616

1717
force_release: clean

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy