mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-14 03:25:15 +01:00
Makefile.local: set IS_GIT = yes when regular file $srcdir/.git exists
$srcdir/.git may also be file. E.g. `git worktree` creates .git file while new working tree is populated.
This commit is contained in:
parent
2333a44ab7
commit
57bd4cf322
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
|||
# repository), we let git append identification of the actual commit.
|
||||
PACKAGE=notmuch
|
||||
|
||||
IS_GIT=$(shell if [ -d ${srcdir}/.git ] ; then echo yes ; else echo no; fi)
|
||||
IS_GIT=$(shell if [ -d ${srcdir}/.git -o -f ${srcdir}/.git ] ; then echo yes ; else echo no; fi)
|
||||
|
||||
ifeq ($(IS_GIT),yes)
|
||||
DATE:=$(shell git --git-dir=${srcdir}/.git log --date=short -1 --pretty=format:%cd)
|
||||
|
|
Loading…
Add table
Reference in a new issue