Skip to content

Commit

Permalink
Allow a git command for getting the current branch in bootstrap to fail
Browse files Browse the repository at this point in the history
It can fail when in git is in detached HEAD mode.
  • Loading branch information
Kobzol committed Jul 18, 2024
1 parent b01a977 commit 4dc8e66
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 4dc8e66

Please sign in to comment.