diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2020-03-16 14:47:21 +0100 |
---|---|---|
committer | Julian Stecklina <js@alien8.de> | 2020-03-29 22:29:58 +0200 |
commit | 002a3a95dcb7391a8372ba7a74f4e7e9bd48b59b (patch) | |
tree | e3e25e7e4fb55f5ef72f2e2c97b736198fc5ca82 /src | |
parent | cc4fe977e5eedf00d8e3d267ccbc3676b3fac1a0 (diff) |
fetchGit: fix "fatal: couldn't find remote ref refs/heads/master" issue with submodules
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/primops/fetchGit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchGit.cc b/src/libexpr/primops/fetchGit.cc index e8905b548..66259d778 100644 --- a/src/libexpr/primops/fetchGit.cc +++ b/src/libexpr/primops/fetchGit.cc @@ -179,7 +179,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri, runProgram("git", true, { "init", tmpDir, "--separate-git-dir", tmpGitDir }); runProgram("git", true, { "-C", tmpDir, "fetch", "--quiet", "--force", - "--", cacheDir, fmt("%s:%s", *ref, *ref) }); + "--", cacheDir, fmt("%s", *ref) }); runProgram("git", true, { "-C", tmpDir, "checkout", "--quiet", "FETCH_HEAD" }); runProgram("git", true, { "-C", tmpDir, "remote", "add", "origin", uri }); |