Skip pushing merges when the repo has no remote
This commit is contained in:
@@ -27,8 +27,7 @@ func (m *Manager) prepareMainCommit(ctx context.Context, task api.Task, project
|
||||
return commit, notes, err
|
||||
}
|
||||
|
||||
func advanceMainCheckout(project api.Project, commit, notes string) error {
|
||||
pushed := git.Remote + "/" + project.DefaultBranch
|
||||
func advanceMainCheckout(project api.Project, commit, notes, pushed string) error {
|
||||
err := git.AdvanceNotes(context.Background(), project.RepoPath, notes)
|
||||
if err != nil {
|
||||
return fmt.Errorf("pushed %s to %s, but updating %s in the project checkout failed: %w", commit, pushed, git.NotesRef, err)
|
||||
|
||||
Reference in New Issue
Block a user