chiark / gitweb /
test suite: Tolerate worktrees when trying to git-fsck
[dgit.git] / tests / lib
index 3c04155a2ddbe398ba480030186b1ab8add23186..4f268fc6a389b2dc5515fd976dba7597e7d02804 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -389,7 +389,7 @@ t-fscks () {
        (
        shopt -s nullglob
        for d in $tmp/*/.git $tmp/git/*.git; do
-               cd "$d"
+               cd "${d%/.git}"
                t-git-fsck
        done
        )