mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
rm gb_repository from go_back_to_integration
This commit is contained in:
parent
676fb0e8fa
commit
21fdfb4272
@ -50,7 +50,6 @@ pub fn get_base_branch_data(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn go_back_to_integration(
|
fn go_back_to_integration(
|
||||||
gb_repository: &gb_repository::Repository,
|
|
||||||
project_repository: &project_repository::Repository,
|
project_repository: &project_repository::Repository,
|
||||||
default_target: &target::Target,
|
default_target: &target::Target,
|
||||||
) -> Result<super::BaseBranch, errors::SetBaseBranchError> {
|
) -> Result<super::BaseBranch, errors::SetBaseBranchError> {
|
||||||
@ -131,7 +130,7 @@ pub fn set_base_branch(
|
|||||||
// if target exists, and it is the same as the requested branch, we should go back
|
// if target exists, and it is the same as the requested branch, we should go back
|
||||||
if let Some(target) = gb_repository.default_target()? {
|
if let Some(target) = gb_repository.default_target()? {
|
||||||
if target.branch.eq(target_branch_ref) {
|
if target.branch.eq(target_branch_ref) {
|
||||||
return go_back_to_integration(gb_repository, project_repository, &target);
|
return go_back_to_integration(project_repository, &target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user