about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2018-01-09T15·49+0100
committerGitHub <noreply@github.com>2018-01-09T15·49+0100
commit3cd0704387eb10c4104ba06309ed38a6670b5660 (patch)
treeaffea3f6ff5060fa5569dbfcfe3f0f6fc28b0696 /src
parent7b9583680e9e1be1df2a5cd0d71ed8f9a7d45fad (diff)
parent428680b3076a01f278ed629aa3b1744d11a2c231 (diff)
Merge pull request #1787 from dtzWill/fix/git-not-on-PATH
fix git cache 'corruption' when git not available, breaks all future use of fetchGit
Diffstat (limited to 'src')
-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 });
     }