Skip to content

Commit

Permalink
Change deletion order to remote first from local first
Browse files Browse the repository at this point in the history
remote first is more idempotent than local first
  • Loading branch information
foriequal0 committed Feb 12, 2020
1 parent 6e5e036 commit 16d91e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ fn main(args: Args) -> ::std::result::Result<(), Box<dyn std::error::Error>> {
return Ok(());
}

delete_local_branches(
delete_remote_branches(
&repo,
&branches.get_local_branches_to_delete(&args.delete),
&branches.get_remote_refs_to_delete(&args.delete),
args.dry_run,
)?;
delete_remote_branches(
delete_local_branches(
&repo,
&branches.get_remote_refs_to_delete(&args.delete),
&branches.get_local_branches_to_delete(&args.delete),
args.dry_run,
)?;
Ok(())
Expand Down

0 comments on commit 16d91e9

Please sign in to comment.