Properly detect git in case of linked worktree

This commit is contained in:
Geert Janssens
2018-02-18 19:53:29 +01:00
parent ee217c61b2
commit a64e40dac3

View File

@@ -95,7 +95,7 @@ fi
# Maybe it's git?
real_gitdir="${real_srcdir}"/.git
if test -d "${real_gitdir}"
if test -d "${real_gitdir}" || test -e "${real_gitdir}"
then
# If we're only interested in the vcs type, then we're done here
if [ "$request" = "type" ]