diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 03:49:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 03:49:03 -0500 |
| commit | 99aef6a8935243a81058b69578c7e702474c1438 (patch) | |
| tree | 1631ef6fc996539e1c84d585407bd186229d198a | |
| parent | edf94e266556d6314a2ffd86a8cc9e2ee0abd071 (diff) | |
move back to using the default branch the server providesv0.25.87
| -rw-r--r-- | doStats.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -132,8 +132,8 @@ func makeFmts() string { 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/HEAD"} + cmd := []string{"git", "log", "-n", "100", makeFmts(), "origin/" + r.GetMasterBranchName()} // must use 'master' as queried from the git server + // cmd := []string{"git", "log", "-n", "100", makeFmts(), "origin/HEAD"} // HEAD is _NOT_ always set if config.If("stats") { log.Info("Run:", cmd) } |
