mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Test for .git as readable instead of a dir to support worktrees
Fixes #20492.
This commit is contained in:
committed by
Nick Mathewson
parent
42ec60ecfb
commit
cf2f36b8b4
+1
-1
@@ -198,7 +198,7 @@ noinst_HEADERS+= $(ORHEADERS) micro-revision.i
|
||||
|
||||
micro-revision.i: FORCE
|
||||
$(AM_V_at)rm -f micro-revision.tmp; \
|
||||
if test -d "$(top_srcdir)/.git" && \
|
||||
if test -r "$(top_srcdir)/.git" && \
|
||||
test -x "`which git 2>&1;true`"; then \
|
||||
HASH="`cd "$(top_srcdir)" && git rev-parse --short=16 HEAD`"; \
|
||||
echo \"$$HASH\" > micro-revision.tmp; \
|
||||
|
||||
Reference in New Issue
Block a user