Skip to content

Commit 3ef8d68

Browse files
committed
fix gogit
1 parent 34e34df commit 3ef8d68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/git/repo_commitgraph_gogit.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
gitealog "code.gitea.io/gitea/modules/log"
1414

15-
"github.com/go-git/go-git/v5/plumbing/format/commitgraph"
15+
commitgraph_v2 "github.com/go-git/go-git/v5/plumbing/format/commitgraph/v2"
1616
cgobject "github.com/go-git/go-git/v5/plumbing/object/commitgraph"
1717
)
1818

@@ -22,8 +22,8 @@ func (r *Repository) CommitNodeIndex() (cgobject.CommitNodeIndex, *os.File) {
2222

2323
file, err := os.Open(indexPath)
2424
if err == nil {
25-
var index commitgraph.Index
26-
index, err = commitgraph.OpenFileIndex(file)
25+
var index commitgraph_v2.Index
26+
index, err = commitgraph_v2.OpenFileIndex(file)
2727
if err == nil {
2828
return cgobject.NewGraphCommitNodeIndex(index, r.gogitRepo.Storer), file
2929
}

0 commit comments

Comments
 (0)