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 4dc8e66

Browse files
committed
Allow a git command for getting the current branch in bootstrap to fail
It can fail when in git is in detached HEAD mode.
1 parent b01a977 commit 4dc8e66

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 によって変換されたページ (->オリジナル) /