summaryrefslogtreecommitdiffstats
path: root/modules/git/last_commit_cache_nogogit.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/last_commit_cache_nogogit.go')
-rw-r--r--modules/git/last_commit_cache_nogogit.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/git/last_commit_cache_nogogit.go b/modules/git/last_commit_cache_nogogit.go
index 0a1babb112..9808216a8f 100644
--- a/modules/git/last_commit_cache_nogogit.go
+++ b/modules/git/last_commit_cache_nogogit.go
@@ -8,7 +8,6 @@ package git
import (
"bufio"
- "io"
"path"
)
@@ -36,7 +35,7 @@ func NewLastCommitCache(repoPath string, gitRepo *Repository, ttl func() int64,
}
// Get get the last commit information by commit id and entry path
-func (c *LastCommitCache) Get(ref, entryPath string, wr *io.PipeWriter, rd *bufio.Reader) (interface{}, error) {
+func (c *LastCommitCache) Get(ref, entryPath string, wr WriteCloserError, rd *bufio.Reader) (interface{}, error) {
v := c.cache.Get(c.getCacheKey(c.repoPath, ref, entryPath))
if vs, ok := v.(string); ok {
log("LastCommitCache hit level 1: [%s:%s:%s]", ref, entryPath, vs)