()
| 373 | } |
| 374 | |
| 375 | func (gc *remoteGitClient) LastCommit() (*git.Commit, error) { |
| 376 | httpClient, err := gc.httpClient() |
| 377 | if err != nil { |
| 378 | return nil, err |
| 379 | } |
| 380 | repo, err := gc.repo() |
| 381 | if err != nil { |
| 382 | return nil, err |
| 383 | } |
| 384 | commit, err := api.LastCommit(api.NewClientFromHTTP(httpClient), repo) |
| 385 | if err != nil { |
| 386 | return nil, err |
| 387 | } |
| 388 | return &git.Commit{Sha: commit.OID}, nil |
| 389 | } |
nothing calls this directly
no test coverage detected