Skip to content

Commit

Permalink
Unrolled build for rust-lang#127919
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127919 - Kobzol:fix-git-command, r=onur-ozkan

Allow a git command for getting the current branch in bootstrap to fail

Found by `@lukas-code` [here](rust-lang#127680 (comment)). The bug was introduced in rust-lang#127680 (before, the command was allowed to fail).

r? `@onur-ozkan`
  • Loading branch information
rust-timer authored Jul 18, 2024
2 parents 5753b30 + 4dc8e66 commit 1636e2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ impl Build {
// even though that has no relation to the upstream for the submodule.
let current_branch = helpers::git(Some(&self.src))
.capture_stdout()
.allow_failure()
.run_always()
.args(["symbolic-ref", "--short", "HEAD"])
.run(self)
Expand Down

0 comments on commit 1636e2e

Please sign in to comment.