diff options
author | J. Ryan Stinnett <jryans@gmail.com> | 2016-12-04 21:16:59 -0600 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-05 08:21:17 -0500 |
commit | cf2f36b8b422aa4cf11282bc14421b6dbfa54beb (patch) | |
tree | 2c0e11d9a840279cb10215aeeff2db2e28eec688 /src/or/include.am | |
parent | 42ec60ecfbff39c454945bc52def0df196ec38b8 (diff) | |
download | tor-cf2f36b8b422aa4cf11282bc14421b6dbfa54beb.tar.gz tor-cf2f36b8b422aa4cf11282bc14421b6dbfa54beb.zip |
Test for .git as readable instead of a dir to support worktrees
Fixes #20492.
Diffstat (limited to 'src/or/include.am')
-rw-r--r-- | src/or/include.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/include.am b/src/or/include.am index b4554aadb9..ae493b7225 100644 --- a/src/or/include.am +++ b/src/or/include.am @@ -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; \ |