Rollup merge of #142374 - Kobzol:fix-newline, r=tmiasko
Fix missing newline trim in bootstrap Fixes [this comment](https://github.com/rust-lang/rust/pull/141909/files#r2140632918). Fixes: https://github.com/rust-lang/rust/issues/142350
This commit is contained in:
commit
c97dca6989
1 changed files with 2 additions and 1 deletions
|
|
@ -1389,7 +1389,8 @@ impl Config {
|
|||
// If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
|
||||
// This syntax isn't accepted by `branch.{branch}`. Strip it.
|
||||
let branch = current_branch.stdout();
|
||||
let branch = branch.strip_prefix("heads/").unwrap_or(&branch);
|
||||
let branch = branch.trim();
|
||||
let branch = branch.strip_prefix("heads/").unwrap_or(branch);
|
||||
git.arg("-c").arg(format!("branch.{branch}.remote=origin"));
|
||||
}
|
||||
git.args(["submodule", "update", "--init", "--recursive", "--depth=1"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue