소스 검색

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

(cherry picked from commit 9d2cca1139e9013b4194095d1a653032367b495c)
Pierre Muller 3 일 전
부모
커밋
7e53314ce2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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