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:
Jakub Beránek 2024-07-18 15:49:10 +02:00
parent b01a977b07
commit 4dc8e66074
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -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)