fetchGit: fix creation of uninitialized cache dir, let git create it

fetchGit test (as modified in previous commit) now passes.
This commit is contained in:
Will Dietz 2018-01-09 09:05:18 -06:00
parent 84d9e213d2
commit 428680b307

View file

@ -85,7 +85,6 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
Path cacheDir = getCacheDir() + "/nix/git";
if (!pathExists(cacheDir)) {
createDirs(cacheDir);
runProgram("git", true, { "init", "--bare", cacheDir });
}