about summary refs log tree commit diff
path: root/src/libexpr/primops/fetchGit.cc
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-01-09T15·05-0600
committerWill Dietz <w@wdtz.org>2018-01-09T15·05-0600
commit428680b3076a01f278ed629aa3b1744d11a2c231 (patch)
treeaffea3f6ff5060fa5569dbfcfe3f0f6fc28b0696 /src/libexpr/primops/fetchGit.cc
parent84d9e213d2dc8b09705b0668184f33ddd0a004b1 (diff)
fetchGit: fix creation of uninitialized cache dir, let git create it
fetchGit test (as modified in previous commit) now passes.
Diffstat (limited to 'src/libexpr/primops/fetchGit.cc')
-rw-r--r--src/libexpr/primops/fetchGit.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchGit.cc b/src/libexpr/primops/fetchGit.cc
index 0d0b11958a4b..fb664cffb5b7 100644
--- a/src/libexpr/primops/fetchGit.cc
+++ b/src/libexpr/primops/fetchGit.cc
@@ -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 });
     }