diff options
Diffstat (limited to 'autogen.go')
| -rw-r--r-- | autogen.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -19,11 +19,11 @@ import ( func (repo *Repo) AutogenSave(files []string, refname string, del bool) error { if del { cmd := []string{"git", "notes", "show", refname} - if err := repo.StrictRun(cmd); err != nil { + if _, err := repo.RunQuiet(cmd); err != nil { // if there are not any notes, no need to remove them } else { cmd := []string{"git", "notes", "remove", refname} - if err := repo.StrictRun(cmd); err != nil { + if _, err := repo.RunQuiet(cmd); err != nil { return err } } @@ -31,18 +31,18 @@ func (repo *Repo) AutogenSave(files []string, refname string, del bool) error { for _, fname := range files { autotag := "// `autogen:" + fname + "`" cmd := []string{"git", "notes", "append", "-m", autotag, refname} - if err := repo.StrictRun(cmd); err != nil { + if _, err := repo.RunQuiet(cmd); err != nil { return err } cmd = []string{"git", "notes", "append", "-F", fname, refname} - if err := repo.StrictRun(cmd); err != nil { + if _, err := repo.RunQuiet(cmd); err != nil { return err } } // a tag with a blank name indicates the end of the autogen file or files autotag := "// `autogen:`" cmd := []string{"git", "notes", "append", "-m", autotag, refname} - if err := repo.StrictRun(cmd); err != nil { + if _, err := repo.RunQuiet(cmd); err != nil { return err } return nil |
