Skip to content
Snippets Groups Projects
Commit 8284dfb0 authored by Assaf Gordon's avatar Assaf Gordon
Browse files

auto-version: fix missing git detection

parent 29c3f995
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ setversion:
.PHONY: autoversion
autoversion:
@( \
if [ -d ".git" ] && $$(which git) ; then \
if [ -d ".git" ] && which git > /dev/null ; then \
DETECTED_VERSION=$$(git describe --always --tags --dirty) ; \
else \
DETECTED_VERSION=$$(grep -v "^#" "$(RELEASED_VERSION_FILE)") ; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment