[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fatal: Not a git repository
From: |
Jim Meyering |
Subject: |
Re: fatal: Not a git repository |
Date: |
Mon, 29 Oct 2007 07:48:54 +0100 |
Andreas Schwab <address@hidden> wrote:
> The vc_exe_in_TESTS checks fail when building outside $(srcdir).
Thanks for reporting that.
FYI, that happens only with a non-srcdir build using the git tree.
I.e., it's not tested by "make distcheck".
Here's the fix:
diff --git a/ChangeLog b/ChangeLog
index b091bb4..fe4bfab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-29 Jim Meyering <address@hidden>
+
+ Avoid test failure in non-srcdir build vs. the git tree.
+ * tests/check.mk (vc_exe_in_TESTS): Run this test only in a
+ srcdir build directory. Reported by Andreas Schwab.
+
2007-10-28 Jim Meyering <address@hidden>
Define ENOTSUP, not ENOSYS. Needed on OpenBSD 3.9.
diff --git a/tests/check.mk b/tests/check.mk
index 39b094d..4c299e6 100644
--- a/tests/check.mk
+++ b/tests/check.mk
@@ -19,7 +19,7 @@
# one that does not end in '\'.
_v = TESTS
vc_exe_in_TESTS: Makefile
- @if test -d $(top_srcdir)/.git; then \
+ @if test -d $(top_srcdir)/.git && test $(srcdir) = .; then \
sed -n '/^$(_v) = \\$$/,/[^\]$$/p' $(srcdir)/Makefile.am \
| sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \
| tr -s '\012\\' ' ' | fmt -1 | sort -u > t1 && \
--
1.5.3.4.395.g85b0