Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions handlers/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ func MergeMaster(username, password, repoUrl, branchName, master string) error {
return fmt.Errorf("git config error: %w, output: %s", err, output)
}

if output, err := git.Checkout(workingDir, checkout.Branch(master)); err != nil {
logger.Debug("git checkout error", "branch", master, "output", output)
return fmt.Errorf("git checkout error: %w, output: %s", err, output)
}

if output, err := git.Checkout(workingDir, checkout.Branch(branchName)); err != nil {
logger.Debug("git checkout error", "branch", branchName, "output", output)
return fmt.Errorf("git checkout error: %w, output: %s", err, output)
Expand Down
Loading