Skip pushing merges when the repo has no remote
This commit is contained in:
@@ -14,6 +14,10 @@ const NotesRef = "refs/notes/byre"
|
||||
const notesFetch = NotesRef + "*:" + NotesRef + "*"
|
||||
|
||||
func ConfigureNotesFetch(ctx context.Context, repo string) error {
|
||||
has, err := HasRemote(ctx, repo)
|
||||
if err != nil || !has {
|
||||
return err
|
||||
}
|
||||
key := "remote." + Remote + ".fetch"
|
||||
out, stderr, code, err := runCode(ctx, repo, nil, "config", "--get-all", key)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user