@@ -110,6 +110,7 @@ func (tes Entries) Sort() {
110
110
111
111
type commitInfo struct {
112
112
id string
113
+ entry string
113
114
infos []interface {}
114
115
err error
115
116
}
@@ -128,7 +129,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
128
129
for i := range tes {
129
130
if tes [i ].Type != OBJECT_COMMIT {
130
131
go func (i int ) {
131
- cinfo := commitInfo {id : tes [i ].ID .String ()}
132
+ cinfo := commitInfo {id : tes [i ].ID .String (), entry : tes [ i ]. Name () }
132
133
c , err := commit .GetCommitByPath (filepath .Join (treePath , tes [i ].Name ()))
133
134
if err != nil {
134
135
cinfo .err = fmt .Errorf ("GetCommitByPath (%s/%s): %v" , treePath , tes [i ].Name (), err )
@@ -142,7 +143,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
142
143
143
144
// Handle submodule
144
145
go func (i int ) {
145
- cinfo := commitInfo {id : tes [i ].ID .String ()}
146
+ cinfo := commitInfo {id : tes [i ].ID .String (), entry : tes [ i ]. Name () }
146
147
sm , err := commit .GetSubModule (path .Join (treePath , tes [i ].Name ()))
147
148
if err != nil {
148
149
cinfo .err = fmt .Errorf ("GetSubModule (%s/%s): %v" , treePath , tes [i ].Name (), err )
@@ -171,7 +172,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
171
172
return nil , info .err
172
173
}
173
174
174
- infoMap [info .id ] = info .infos
175
+ infoMap [info .entry ] = info .infos
175
176
i ++
176
177
if i == len (tes ) {
177
178
break
@@ -180,7 +181,7 @@ func (tes Entries) GetCommitsInfo(commit *Commit, treePath string) ([][]interfac
180
181
181
182
commitsInfo := make ([][]interface {}, len (tes ))
182
183
for i := 0 ; i < len (tes ); i ++ {
183
- commitsInfo [i ] = infoMap [tes [i ].ID . String ()]
184
+ commitsInfo [i ] = infoMap [tes [i ].Name ()]
184
185
}
185
186
return commitsInfo , nil
186
187
}
0 commit comments