Simplify codebase per audit of 8b89f14
This commit is contained in:
@@ -19,7 +19,7 @@ func ConfigureNotesFetch(ctx context.Context, repo string) error {
|
||||
return err
|
||||
}
|
||||
key := "remote." + Remote + ".fetch"
|
||||
out, stderr, code, err := runCode(ctx, repo, nil, "config", "--get-all", key)
|
||||
out, stderr, code, err := runCode(ctx, repo, "config", "--get-all", key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -39,7 +39,7 @@ func NoteCommit(ctx context.Context, repo, commit, note string, env []string) (s
|
||||
return "", err
|
||||
}
|
||||
|
||||
parent, stderr, code, err := runCode(ctx, repo, nil, "rev-parse", "--verify", "--quiet", NotesRef)
|
||||
parent, stderr, code, err := runCode(ctx, repo, "rev-parse", "--verify", "--quiet", NotesRef)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
@@ -75,7 +75,7 @@ func NoteCommit(ctx context.Context, repo, commit, note string, env []string) (s
|
||||
}
|
||||
|
||||
func AdvanceNotes(ctx context.Context, repo, notes string) error {
|
||||
current, stderr, code, err := runCode(ctx, repo, nil, "rev-parse", "--verify", "--quiet", NotesRef)
|
||||
current, stderr, code, err := runCode(ctx, repo, "rev-parse", "--verify", "--quiet", NotesRef)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user