HOME must be set before calling git-init when creating test repositories