mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
be explicit about hash length
different git versions have different defaults
This commit is contained in:
parent
a4d38d65a6
commit
f4649b515f
1 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -23,7 +23,7 @@ pyenv:
|
||||||
.PHONY: buildhash
|
.PHONY: buildhash
|
||||||
buildhash:
|
buildhash:
|
||||||
oldhash=$$(test -f meta/buildhash && cat meta/buildhash || true); \
|
oldhash=$$(test -f meta/buildhash && cat meta/buildhash || true); \
|
||||||
newhash=$$(git rev-parse --short HEAD); \
|
newhash=$$(git rev-parse --short=8 HEAD); \
|
||||||
if [ "$$oldhash" != "$$newhash" ]; then \
|
if [ "$$oldhash" != "$$newhash" ]; then \
|
||||||
echo $$newhash > meta/buildhash; \
|
echo $$newhash > meta/buildhash; \
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue