chiark / gitweb /
test suite: lib: t-git-fsck: put dgit-test-fsck.errs in git dir
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Jan 2018 23:15:51 +0000 (23:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Jan 2018 00:37:22 +0000 (00:37 +0000)
This needs to not be in the working tree; it causes trouble there.

This was broken in 090071ae8e31c8f81283af477c1114835ed8fd02
"test suite: Tolerate worktrees when trying to git-fsck"

Reported-by: Sean Whitton <spwhitton@spwhitton.name>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
tests/lib

index cc3208b22a48846f4a438e8d634add50a3371253..f4e8c3bbc99c7d8fbd005d2c5d0f48375ed2c9a9 100644 (file)
@@ -1,6 +1,8 @@
 dgit (3.14~) stable; urgency=medium
 
-  * 
+  Test suite:
+  * oldnewtagalt: Fix regression when running outside git tree,
+    introduced in 3.12.
 
  --
 
index fcff468b0a4b29f0d89e3a11d8959d182ed2f8ef..d36e8ebfe0d4c65e115bdda84d3a5fc063ecaf1f 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -359,7 +359,7 @@ t-expect-fsck-fail () {
 }
 
 t-git-fsck () {
-       local fsckerrs=dgit-test-fsck.errs
+       local fsckerrs=$(git rev-parse --git-dir)/dgit-test-fsck.errs
 
        set +e
        LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \