diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 06:37:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 06:37:14 -0600 |
| commit | 233f7bca767aab9df55adea409e9820050631586 (patch) | |
| tree | 1ce61760e8b31077b9accc9b1da978d935a132d3 /age.go | |
| parent | 4bc95ad2684cb42159229b8198aa8a2377f80aa1 (diff) | |
lots of changes to isolate exec 'git'
Diffstat (limited to 'age.go')
| -rw-r--r-- | age.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ func (repo *Repo) GoSumAge() (time.Duration, error) { return time.Since(mtime), nil } now := time.Now() - return time.Since(now), errors.New(repo.GoPath + " go.mod missing") + return time.Since(now), errors.New(repo.GetGoPath() + " go.mod missing") } func (repo *Repo) GitChanged() bool { @@ -39,7 +39,7 @@ func (repo *Repo) GitChanged() bool { log.Info("gitpb:", fullfile, "changed") return true } - newtime := repo.LastPull.AsTime() + newtime := repo.Times.LastPull.AsTime() if lasttime == newtime { return false @@ -52,7 +52,7 @@ func (repo *Repo) GitPullAge() time.Duration { lastpull, err := repo.LastGitPull() if err == nil { // if error, something is wrong, assume true - ltime := repo.LastPull.AsTime() + ltime := repo.Times.LastPull.AsTime() return time.Since(ltime) } |
