// push pushes the local git-notes used for reviews to a remote repo. func push(repo repository.Repo, args []string) error { if len(args) > 1 { return errors.New("Only pushing to one remote at a time is supported.") } remote := "origin" if len(args) == 1 { remote = args[0] } if err := repo.PushNotesAndArchive(remote, notesRefPattern, archiveRefPattern); err != nil { return err } return nil }