mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
fetchGit: checkout rev instead of latest ref
Major bugfix for the submodules = true code path. TODO: Add tests.
This commit is contained in:
parent
be84049baf
commit
b306b7039e
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
|
|||
runProgram("git", true, { "-C", tmpDir, "fetch", "--quiet", "--force",
|
||||
"--", cacheDir, fmt("%s", *ref) });
|
||||
|
||||
runProgram("git", true, { "-C", tmpDir, "checkout", "--quiet", "FETCH_HEAD" });
|
||||
runProgram("git", true, { "-C", tmpDir, "checkout", "--quiet", gitInfo.rev });
|
||||
runProgram("git", true, { "-C", tmpDir, "remote", "add", "origin", uri });
|
||||
runProgram("git", true, { "-C", tmpDir, "submodule", "--quiet", "update", "--init", "--recursive" });
|
||||
|
||||
|
|
Loading…
Reference in a new issue