Skip to content

Commit

Permalink
Merge pull request #11753 from johnrichardrinehart/jrinehart/fix-supp…
Browse files Browse the repository at this point in the history
…ort-for-dangling-revisions

fix: better support for dangling revisions
  • Loading branch information
edolstra authored Dec 19, 2024
2 parents 266d76c + 591a826 commit d11e129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfetchers/git.cc
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ struct GitInputScheme : InputScheme
// everything to ensure we get the rev.
Activity act(*logger, lvlTalkative, actUnknown, fmt("making temporary clone of '%s'", repoDir));
runProgram("git", true, { "-C", tmpDir, "fetch", "--quiet", "--force",
"--update-head-ok", "--", repoDir, "refs/*:refs/*" }, {}, true);
"--update-head-ok", "--", repoDir, "refs/*:refs/*", input.getRev()->gitRev() }, {}, true);
}

runProgram("git", true, { "-C", tmpDir, "checkout", "--quiet", input.getRev()->gitRev() });
Expand Down

0 comments on commit d11e129

Please sign in to comment.