Skip to content

Commit

Permalink
Pass --update-head-ok when fetching via git CLI
Browse files Browse the repository at this point in the history
Discovered in a recent [comment] it looks like not passing this may
cause the git CLI to fail in some situations.

[comment]: #2078 (comment)
  • Loading branch information
alexcrichton committed Nov 2, 2018
1 parent 6026fc3 commit e307f04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cargo/sources/git/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ fn fetch_with_cli(
cmd.arg("fetch")
.arg("--tags") // fetch all tags
.arg("--quiet")
.arg("--update-head-ok") // see discussion in #2078
.arg(url.to_string())
.arg(refspec)
.cwd(repo.path());
Expand Down

0 comments on commit e307f04

Please sign in to comment.