From 2edae71570f985746856d1513041803a5bd4860a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 2 Feb 2020 11:17:02 +0100 Subject: [PATCH] configure: deal with git worktree checkouts, where .git is a file fixes #3013 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 82f6fccd..0b99cf80 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ AS_VAR_IF([_cv_gnu_make_command], [""], [AC_MSG_ERROR([the i3 Makefile.am requir AX_EXTEND_SRCDIR -AS_IF([test -d ${srcdir}/.git], +AS_IF([test -e ${srcdir}/.git], [ VERSION="$(git -C ${srcdir} describe --tags --abbrev=0)" I3_VERSION="$(git -C ${srcdir} describe --tags --always) ($(git -C ${srcdir} rev-list --format=%cd --date=short -n1 $(git rev-parse HEAD) | tail -n1), branch \\\"$(git -C ${srcdir} describe --tags --always --all | sed s:heads/::)\\\")"