Applied $PWD fix (changeset 278f9b13c39a) to tests/test-hook, too.
abort: repository a not found!255abort: error: Connection refused255abort: repository a not found!255abort: destination '../a' already exists255abort: repository a not found!255abort: destination 'q' already exists