diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-07-18 15:49:10 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-07-18 15:49:10 +0200 |
| commit | 4dc8e66074ac25ebbaffbdd1872febff9ac444c5 (patch) | |
| tree | 1895e5789e19eafe3038b07d2a9a8b86ab1534d9 /src/bootstrap | |
| parent | b01a977b0737e177f9b03949b908c250020d0119 (diff) | |
| download | rust-4dc8e66074ac25ebbaffbdd1872febff9ac444c5.tar.gz rust-4dc8e66074ac25ebbaffbdd1872febff9ac444c5.zip | |
Allow a git command for getting the current branch in bootstrap to fail
It can fail when in git is in detached HEAD mode.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index db1fa05a82c..a77c20067e6 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -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) |
