Skip to content

Commit ad76318

Browse files
committed
Fix missing newline trim in bootstrap
1 parent bdb04d6 commit ad76318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,7 @@ impl Config {
14021402
// If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
14031403
// This syntax isn't accepted by `branch.{branch}`. Strip it.
14041404
let branch = current_branch.stdout();
1405+
let branch = branch.trim();
14051406
let branch = branch.strip_prefix("heads/").unwrap_or(&branch);
14061407
git.arg("-c").arg(format!("branch.{branch}.remote=origin"));
14071408
}

0 commit comments

Comments
 (0)