Skip to content

Commit 5998a46

Browse files
committed
Auto merge of #6250 - alexcrichton:more-flags, r=dwijnand
Pass `--update-head-ok` when fetching via git CLI Discovered in a recent [comment] it looks like not passing this may cause the git CLI to fail in some situations. [comment]: #2078 (comment)
2 parents 97046d0 + e307f04 commit 5998a46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/sources/git/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ fn fetch_with_cli(
755755
cmd.arg("fetch")
756756
.arg("--tags") // fetch all tags
757757
.arg("--quiet")
758+
.arg("--update-head-ok") // see discussion in #2078
758759
.arg(url.to_string())
759760
.arg(refspec)
760761
.cwd(repo.path());

0 commit comments

Comments
 (0)