summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-13 12:57:02 -0600
committerJeff Carr <[email protected]>2024-12-13 12:57:02 -0600
commitadef980837a2d75f7fd0bb03a600f98f5081f89d (patch)
tree45ceb56699e725fc9c8b2c57675d196466bf5430 /shell.go
parentc5f7570834f092608cd2137e966399f44aa02d36 (diff)
store autogenerated files in git notes
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell.go b/shell.go
index 3a5fc0d..8215d46 100644
--- a/shell.go
+++ b/shell.go
@@ -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
}