Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6c10822

Browse files
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‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /