@@ -81,7 +81,6 @@ func Commits(ctx *context.Context) {
81
81
ctx .Data ["Username" ] = ctx .Repo .Owner .Name
82
82
ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
83
83
ctx .Data ["CommitCount" ] = commitsCount
84
- ctx .Data ["RefName" ] = ctx .Repo .RefName
85
84
86
85
pager := context .NewPagination (int (commitsCount ), pageSize , page , 5 )
87
86
pager .SetDefaultParams (ctx )
@@ -157,7 +156,7 @@ func Graph(ctx *context.Context) {
157
156
ctx .Data ["Username" ] = ctx .Repo .Owner .Name
158
157
ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
159
158
ctx .Data ["CommitCount" ] = commitsCount
160
- ctx . Data [ "RefName" ] = ctx . Repo . RefName
159
+
161
160
paginator := context .NewPagination (int (graphCommitsCount ), setting .UI .GraphMaxCommitNum , page , 5 )
162
161
paginator .AddParam (ctx , "mode" , "Mode" )
163
162
paginator .AddParam (ctx , "hide-pr-refs" , "HidePRRefs" )
@@ -203,7 +202,6 @@ func SearchCommits(ctx *context.Context) {
203
202
}
204
203
ctx .Data ["Username" ] = ctx .Repo .Owner .Name
205
204
ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
206
- ctx .Data ["RefName" ] = ctx .Repo .RefName
207
205
ctx .HTML (http .StatusOK , tplCommits )
208
206
}
209
207
@@ -247,7 +245,6 @@ func FileHistory(ctx *context.Context) {
247
245
ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
248
246
ctx .Data ["FileName" ] = fileName
249
247
ctx .Data ["CommitCount" ] = commitsCount
250
- ctx .Data ["RefName" ] = ctx .Repo .RefName
251
248
252
249
pager := context .NewPagination (int (commitsCount ), setting .Git .CommitsRangeSize , page , 5 )
253
250
pager .SetDefaultParams (ctx )
0 commit comments