diff options
author | David Lamparter <equinox@diac24.net> | 2020-04-08 15:18:34 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-04-08 16:30:12 +0200 |
commit | 4c015942b17772e31d9295285714d67f8ae5a5a7 (patch) | |
tree | f45b7934fcc17d6c7cdf155e0b56e73753e20aae /configure.ac | |
parent | yang/embedmodel.py: create output dir if needed (diff) | |
download | frr-4c015942b17772e31d9295285714d67f8ae5a5a7.tar.xz frr-4c015942b17772e31d9295285714d67f8ae5a5a7.zip |
build: fix git detection for worktrees
When using additional git worktrees, .git is not a directory.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 628e0c8af..35261aced 100755 --- a/configure.ac +++ b/configure.ac @@ -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]) |