diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 12:57:02 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 12:57:02 -0600 |
| commit | adef980837a2d75f7fd0bb03a600f98f5081f89d (patch) | |
| tree | 45ceb56699e725fc9c8b2c57675d196466bf5430 /shell.go | |
| parent | c5f7570834f092608cd2137e966399f44aa02d36 (diff) | |
store autogenerated files in git notes
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -48,7 +48,11 @@ func (repo *Repo) RunRealtime(cmd []string) cmd.Status { return shell.PathRunRealtime(repo.GetFullPath(), cmd) } -// for now, even check cmd.Exit +// error if result.Error or if result.Exit != 0 +func (repo *Repo) RunStrict(cmd []string) error { + return repo.StrictRun(cmd) +} + func (repo *Repo) StrictRun(cmd []string) error { result := repo.RunQuiet(cmd) if result.Error != nil { @@ -95,6 +99,6 @@ func (repo *Repo) mtime(filename string) (time.Time, error) { if err == nil { return statf.ModTime(), nil } - log.Log(GITPBWARN, "mtime() error", pathf, err) + log.Log(GITPB, "mtime() os.Stat() error", pathf, err) return time.Now(), err } |
