Skip to content

Commit

Permalink
Use previous branch instead of hard code
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed Sep 27, 2022
1 parent ca3c045 commit 5101c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn main() {
let up_to_date = is_up_to_date(repo_dir, previous_branch);

if !up_to_date {
let has_conflicts = has_conflicts(repo_dir, "main");
let has_conflicts = has_conflicts(repo_dir, previous_branch);
if !has_conflicts {
println!("Merging {:?} into {:?}...", previous_branch, branch);
merge(repo_dir, previous_branch);
Expand Down

0 comments on commit 5101c03

Please sign in to comment.