summaryrefslogtreecommitdiffstats
path: root/modules/git/notes.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/notes.go')
-rw-r--r--modules/git/notes.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/git/notes.go b/modules/git/notes.go
index a62c558787..aea54ab202 100644
--- a/modules/git/notes.go
+++ b/modules/git/notes.go
@@ -6,8 +6,6 @@ package git
import (
"io/ioutil"
-
- "gopkg.in/src-d/go-git.v4/plumbing"
)
// NotesRef is the git ref where Gitea will look for git-notes data.
@@ -45,7 +43,7 @@ func GetNote(repo *Repository, commitID string, note *Note) error {
}
note.Message = d
- commit, err := repo.gogitRepo.CommitObject(plumbing.Hash(notes.ID))
+ commit, err := repo.gogitRepo.CommitObject(notes.ID)
if err != nil {
return err
}