summaryrefslogtreecommitdiffstats
path: root/modules/git/repo_blob.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_blob.go')
-rw-r--r--modules/git/repo_blob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_blob.go b/modules/git/repo_blob.go
index db63491ce4..45ca604402 100644
--- a/modules/git/repo_blob.go
+++ b/modules/git/repo_blob.go
@@ -9,7 +9,7 @@ import (
)
func (repo *Repository) getBlob(id SHA1) (*Blob, error) {
- encodedObj, err := repo.gogitRepo.Storer.EncodedObject(plumbing.AnyObject, plumbing.Hash(id))
+ encodedObj, err := repo.gogitRepo.Storer.EncodedObject(plumbing.AnyObject, id)
if err != nil {
return nil, ErrNotExist{id.String(), ""}
}