We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb04d6 commit ad76318Copy full SHA for ad76318
src/bootstrap/src/core/config/config.rs
@@ -1402,6 +1402,7 @@ impl Config {
1402
// If there is a tag named after the current branch, git will try to disambiguate by prepending `heads/` to the branch name.
1403
// This syntax isn't accepted by `branch.{branch}`. Strip it.
1404
let branch = current_branch.stdout();
1405
+ let branch = branch.trim();
1406
let branch = branch.strip_prefix("heads/").unwrap_or(&branch);
1407
git.arg("-c").arg(format!("branch.{branch}.remote=origin"));
1408
}
0 commit comments