diff options
Diffstat (limited to 'doStats.go')
| -rw-r--r-- | doStats.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -127,10 +127,13 @@ func makeFmts() string { return "--format=" + strings.Join(all, standardSeperator) } +// the correct syntax for +// git log -n 8 --format=%H%00%ae%00%as%00%s origin/HEAD func last100(r *gitpb.Repo, pb *gitpb.Stats) (int, error) { var allerr error var counter int - cmd := []string{"git", "log", "-n", "100", makeFmts(), "origin/" + r.GetMasterBranchName()} + // cmd := []string{"git", "log", "-n", "100", makeFmts(), "origin/" + r.GetMasterBranchName()} + cmd := []string{"git", "log", "-n", "100", makeFmts(), "origin/HEAD"} if config.If("stats") { log.Info("Run:", cmd) } @@ -153,6 +156,7 @@ func last100(r *gitpb.Repo, pb *gitpb.Stats) (int, error) { allerr = errors.Join(allerr, err) astat.Ctime = timestamppb.New(*ctime) astat.Subject = parts[4] + astat.Type = gitpb.Stat_REMOTE pb.Append(astat) } return counter, allerr |
