diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gitrev.m4 | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +16-04-21 Cyrille Bagard <nocbos@gmail.com> + + * gitrev.m4: + Ensure sources are not extracted from a clean tarball before computing + the Git revision. + 16-04-20 Cyrille Bagard <nocbos@gmail.com> * plugins/libcsem/exit.c: @@ -1,4 +1,4 @@ -define([gitrepo], esyscmd([bash -c "echo -n $(( $(git rev-list HEAD | wc -l) + 4))"])) +define([gitrepo], esyscmd([bash -c "echo -n $(( $(test -d .git && git rev-list HEAD | wc -l) + 4))"])) define([gitversion], ifelse(gitrepo, , 000, gitrepo)) |