Allow a git command for getting the current branch in bootstrap to fail
It can fail when in git is in detached HEAD mode.
This commit is contained in:
parent
b01a977b07
commit
4dc8e66074
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue