diff options
Diffstat (limited to 'reloadTags.go')
| -rw-r--r-- | reloadTags.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/reloadTags.go b/reloadTags.go index 37bc762..9017171 100644 --- a/reloadTags.go +++ b/reloadTags.go @@ -11,12 +11,12 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -func (repo *Repo) AllCommits() { - tags := []string{"cd", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"} - format := strings.Join(tags, "_,,,_%") +func (repo *Repo) AllCommits() error { + // tags := []string{"cd", "%(creatordate)", "%(*authordate)", "%(refname)", "%(subject)"} + // format := strings.Join(tags, "_,,,_%") - cmd = []string{"git", "log", "--format=%cd"} - result = shell.PathRunQuiet(repo.FullPath, cmd) + cmd := []string{"git", "log", "--format=%cd"} + result := shell.PathRunQuiet(repo.FullPath, cmd) if result.Error != nil { log.Warn("git for-each-ref error:", result.Error) return result.Error @@ -25,6 +25,7 @@ func (repo *Repo) AllCommits() { newest = strings.TrimSpace(newest) tmp := getGitDateStamp(newest) repo.Times.NewestCommit = timestamppb.New(tmp) + return nil } // reload the tags |
