Commit 66cb344d authored by Sylvain Henry's avatar Sylvain Henry Committed by Krzysztof Gogolewski

Correctly detect GIT in a subtree

When we use a git subtree, .git is a file, not a directory.
The script was already fixed for the commit ID but not for its date.

parent 78fb3107
......@@ -1536,7 +1536,7 @@ if test "$RELEASE" = "NO"; then
if test -f VERSION_DATE; then
elif test -d .git; then
elif test -e .git; then
changequote(, )dnl
ver_posixtime=`git log -1 --pretty=format:%ct`
ver_date=`perl -MPOSIX -e "print strftime('%Y%m%d', gmtime($ver_posixtime));"`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment