Skip to content

Commit 741b9f4

Browse files
committed
fix gorepomod release
1 parent c08f42c commit 741b9f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/gorepomod/internal/git/runner.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ func (gr *Runner) AssureOnMainBranch() error {
258258
// CheckoutMainBranch does that.
259259
func (gr *Runner) CheckoutMainBranch() error {
260260
gr.comment("checking out main branch")
261-
return gr.runNoOut(noHarmDone, "checkout", "origin", mainBranch)
261+
fullBranchSpec := fmt.Sprintf("%s/%s", "origin", mainBranch)
262+
return gr.runNoOut(noHarmDone, "checkout", fullBranchSpec)
262263
}
263264

264265
// FetchRemote does that.

0 commit comments

Comments
 (0)