Skip to content

Commit

Permalink
build: make vis -v version output more robust
Browse files Browse the repository at this point in the history
The `git describe` command fails in shallow checked out git repositories
which do not include the tag information. At least include the git short
hash.
  • Loading branch information
martanne committed Nov 9, 2016
1 parent ef268e0 commit 6e142fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PREFIX ?= /usr/local
SHAREPREFIX ?= ${PREFIX}/share
MANPREFIX ?= ${PREFIX}/man

VERSION = $(shell git describe 2>/dev/null || echo "0.2")
VERSION = $(shell git describe --always 2>/dev/null || echo "0.2")

CONFIG_LUA ?= 1
CONFIG_ACL ?= 0
Expand Down

0 comments on commit 6e142fa

Please sign in to comment.