aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/last_commit_cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/last_commit_cache.go')
-rw-r--r--modules/git/last_commit_cache.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/git/last_commit_cache.go b/modules/git/last_commit_cache.go
index 55585ac4ac..44a4f43728 100644
--- a/modules/git/last_commit_cache.go
+++ b/modules/git/last_commit_cache.go
@@ -92,11 +92,7 @@ func (c *LastCommitCache) Get(ref, entryPath string) (*Commit, error) {
// GetCommitByPath gets the last commit for the entry in the provided commit
func (c *LastCommitCache) GetCommitByPath(commitID, entryPath string) (*Commit, error) {
- objectFormat, err := c.repo.GetObjectFormat()
- if err != nil {
- return nil, err
- }
- sha, err := objectFormat.NewIDFromString(commitID)
+ sha, err := NewIDFromString(commitID)
if err != nil {
return nil, err
}