]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: fix git detection for worktrees 6185/head
authorDavid Lamparter <equinox@diac24.net>
Wed, 8 Apr 2020 13:18:34 +0000 (15:18 +0200)
committerDavid Lamparter <equinox@diac24.net>
Wed, 8 Apr 2020 14:30:12 +0000 (16:30 +0200)
When using additional git worktrees, .git is not a directory.

Signed-off-by: David Lamparter <equinox@diac24.net>
configure.ac

index 628e0c8afc1dbce65b0f70cb5cc97219155bd040..35261aced4730bb57da3d074c53b42482887fad4 100755 (executable)
@@ -860,7 +860,7 @@ fi
 AC_SUBST([EXTRAVERSION])
 
 if test "$with_pkg_git_version" = "yes"; then
-       if test -d "${srcdir}/.git"; then
+       if test -e "${srcdir}/.git"; then
                AC_DEFINE([GIT_VERSION], [1], [include git version info])
        else    with_pkg_git_version="no"
                AC_MSG_WARN([--with-pkg-git-version given, but this is not a git checkout])