diff options
Diffstat (limited to 'modules/git/repo_commit.go')
-rw-r--r-- | modules/git/repo_commit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index 8429a57039..733991612a 100644 --- a/modules/git/repo_commit.go +++ b/modules/git/repo_commit.go @@ -86,9 +86,9 @@ func convertPGPSignatureForTag(t *object.Tag) *CommitGPGSignature { func (repo *Repository) getCommit(id SHA1) (*Commit, error) { var tagObject *object.Tag - gogitCommit, err := repo.gogitRepo.CommitObject(plumbing.Hash(id)) + gogitCommit, err := repo.gogitRepo.CommitObject(id) if err == plumbing.ErrObjectNotFound { - tagObject, err = repo.gogitRepo.TagObject(plumbing.Hash(id)) + tagObject, err = repo.gogitRepo.TagObject(id) if err == nil { gogitCommit, err = repo.gogitRepo.CommitObject(tagObject.Target) } |