Skip to content

Commit 6c10822

Browse files
authored
Rollup merge of #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](#127680 (comment)). The bug was introduced in #127680 (before, the command was allowed to fail). r? `@onur-ozkan`
2 parents ac26f6a + 4dc8e66 commit 6c10822

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ impl Build {
535535
// even though that has no relation to the upstream for the submodule.
536536
let current_branch = helpers::git(Some(&self.src))
537537
.capture_stdout()
538+
.allow_failure()
538539
.run_always()
539540
.args(["symbolic-ref", "--short", "HEAD"])
540541
.run(self)

0 commit comments

Comments
 (0)