Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisStatham committed Jul 11, 2024
1 parent 5aac59a commit 57016fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions internal/multigitter/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,10 @@ func (r *Runner) runSingleRepo(ctx context.Context, repo scm.Repository) (scm.Pu
}
}

// The API requires the branch to exist in order to push a commit to it.
// Force pushing to the branch guarantees it will exist in the state we expect.
err = sourceController.Push(ctx, "origin", true)

if err != nil {
//Ignore this for noww
if r.UseGHAPI {
// The API requires the branch to exist in order to push a commit to it.
// Force pushing to the branch guarantees it will exist in the state we expect.
_ = sourceController.Push(ctx, "origin", true)
}

cmd := prepareScriptCommand(ctx, repo, tmpDir, r.ScriptPath, r.Arguments)
Expand Down
Binary file modified multi-gitter
Binary file not shown.

0 comments on commit 57016fd

Please sign in to comment.