Please describe the problem.

git annex test fails outside a git repository.

$ git annex test
git-annex: Not in a git repository.

and then some tests fail once you work around that.

Exception: getCurrentDirectory:getWorkingDirectory: resource exhausted (Too many open files)

Exception: getCurrentDirectory:getWorkingDirectory: resource exhausted

What steps will reproduce the problem?

Run git annex test.

What version of git-annex are you using? On what operating system?

HEAD at 425a3a1 built with GHC 8.2.1.

Please provide any additional information below.

Full log is here: https://gist.github.com/ilovezfs/1ed886b43d534b239be25f4aa8b7394e

Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)

Yes!