mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-26 23:59:19 +03:00
Dont push dependent branches without own commits
When pushing a stack, a dependent branch may be empty (without commits) - those should not be pushed
This commit is contained in:
parent
107a7f1914
commit
25ff765955
@ -199,6 +199,10 @@ pub fn push_stack(project: &Project, branch_id: StackId, with_force: bool) -> Re
|
||||
let mut check_commit = IsCommitIntegrated::new(ctx, &default_target, &gix_repo, &mut graph)?;
|
||||
let stack_series = stack.list_series(ctx)?;
|
||||
for series in stack_series {
|
||||
if series.local_commits.is_empty() {
|
||||
// Nothing to push for this one
|
||||
continue;
|
||||
}
|
||||
if series.head.target == merge_base {
|
||||
// Nothing to push for this one
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user