aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_commitgraph_gogit.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_commitgraph_gogit.go')
-rw-r--r--modules/git/repo_commitgraph_gogit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_commitgraph_gogit.go b/modules/git/repo_commitgraph_gogit.go
index 8e92c30e54..c2d741daae 100644
--- a/modules/git/repo_commitgraph_gogit.go
+++ b/modules/git/repo_commitgraph_gogit.go
@@ -22,7 +22,7 @@ func (r *Repository) CommitNodeIndex() (cgobject.CommitNodeIndex, *os.File) {
file, err := os.Open(indexPath)
if err == nil {
- var index commitgraph.Index
+ var index commitgraph.Index // TODO: in newer go-git, it might need to use "github.com/go-git/go-git/v5/plumbing/format/commitgraph/v2" package to compile
index, err = commitgraph.OpenFileIndex(file)
if err == nil {
return cgobject.NewGraphCommitNodeIndex(index, r.gogitRepo.Storer), file