Fix "idle" time for repositories
f0281f3588d95d3a4b5915731eb4d86eb96e9425
1 parent
2b6c59fe
main.go
+2 -1
| 155 | 155 | Description: desc, |
|
| 156 | 156 | Owner: owner, |
|
| 157 | 157 | Git: git, |
|
| 158 | 158 | } |
|
| 159 | 159 | ||
| 160 | - | commit, err := git.getCommit("HEAD") |
|
| 160 | + | defaultBranch := git.getDefaultBranch() |
|
| 161 | + | commit, err := git.getCommit(defaultBranch) |
|
| 161 | 162 | if err == nil { |
|
| 162 | 163 | info.LastUpdated = commit.AuthorDate |
|
| 163 | 164 | } |
|
| 164 | 165 | ||
| 165 | 166 | repos[name] = info |