Browse Source

Use '-e' test instead of '-d' because .git is a file if using a worktree

(cherry picked from commit 9d2cca1139e9013b4194095d1a653032367b495c)
Pierre Muller 2 days ago
parent
commit
7e53314ce2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/fpcm/get_revision.sh

+ 1 - 1
utils/fpcm/get_revision.sh

@@ -15,7 +15,7 @@ export LANG
 tmpfiles=
 
 # git repository?
-if [ -d ../../.git ] ; then
+if [ -e ../../.git ] ; then
   USEGIT=1
   echo Using git repository
   # we just look for the last commit date here