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:
		
							parent
							
								
									84d9e213d2
								
							
						
					
					
						commit
						428680b307
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -85,7 +85,6 @@ GitInfo exportGit(ref<Store> store, const std::string & uri, | ||||||
|     Path cacheDir = getCacheDir() + "/nix/git"; |     Path cacheDir = getCacheDir() + "/nix/git"; | ||||||
| 
 | 
 | ||||||
|     if (!pathExists(cacheDir)) { |     if (!pathExists(cacheDir)) { | ||||||
|         createDirs(cacheDir); |  | ||||||
|         runProgram("git", true, { "init", "--bare", cacheDir }); |         runProgram("git", true, { "init", "--bare", cacheDir }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue