Skip to content

Commit

Permalink
Fetch and pull main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
skuzzle committed Jan 24, 2024
1 parent 6bede25 commit 2dc7d6b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ abstract class ReleaseGitLocalTask : AbstractReleaseStep() {
}

if (mergeBranches.get()) {
print("Merging release tag $releaseTagName into ${mainBranch.get()}")
print("Merging release tag $releaseTagName into ${mainBranch.get()} (current branch: ${git.currentBranch()})")
git.git("fetch", "origin", mainBranch.get())
git.git("checkout", mainBranch.get())
git.git("pull")
git.git("merge", releaseTagName, "--strategy-option", "theirs")
}
}
Expand Down

0 comments on commit 2dc7d6b

Please sign in to comment.