Skip to content
Snippets Groups Projects
Commit 2a65fc56 authored by Christoph Witzko's avatar Christoph Witzko
Browse files

fix(GetCommits): resolve toSha

parent a11cf761
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,13 @@ func (repo *Repository) GetInfo() (*provider.RepositoryInfo, error) {
func (repo *Repository) GetCommits(fromSha, toSha string) ([]*semrel.RawCommit, error) {
allCommits := make([]*semrel.RawCommit, 0)
toHash, err := repo.repo.ResolveRevision(plumbing.Revision(toSha))
if err != nil {
return nil, err
}
commits, err := repo.repo.Log(&git.LogOptions{
From: plumbing.NewHash(toSha),
From: *toHash,
})
if err != nil {
return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment