Skip to content

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

+1
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)