Remove wrong error message about remote branch

This commit is contained in:
2021-11-24 21:15:11 +01:00
parent 102758c25c
commit b3906c646a

View File

@@ -949,10 +949,6 @@ pub fn run() {
.set_upstream(Some(&upstream_branch_name))
.unwrap();
} else {
print_error(&format!(
"Remote branch {} not found",
&upstream_branch_name
));
let split_at = upstream_branch_name.find('/').unwrap_or(0);
if split_at == 0 || split_at >= upstream_branch_name.len() - 1 {
print_error("Tracking branch needs to match the pattern <remote>/<branch_name>");