@@ -81,7 +81,6 @@ func Commits(ctx *context.Context) {
8181 ctx .Data ["Username" ] = ctx .Repo .Owner .Name
8282 ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
8383 ctx .Data ["CommitCount" ] = commitsCount
84- ctx .Data ["RefName" ] = ctx .Repo .RefName
8584
8685 pager := context .NewPagination (int (commitsCount ), pageSize , page , 5 )
8786 pager .SetDefaultParams (ctx )
@@ -157,7 +156,7 @@ func Graph(ctx *context.Context) {
157156 ctx .Data ["Username" ] = ctx .Repo .Owner .Name
158157 ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
159158 ctx .Data ["CommitCount" ] = commitsCount
160- ctx . Data [ "RefName" ] = ctx . Repo . RefName
159+
161160 paginator := context .NewPagination (int (graphCommitsCount ), setting .UI .GraphMaxCommitNum , page , 5 )
162161 paginator .AddParam (ctx , "mode" , "Mode" )
163162 paginator .AddParam (ctx , "hide-pr-refs" , "HidePRRefs" )
@@ -203,7 +202,6 @@ func SearchCommits(ctx *context.Context) {
203202 }
204203 ctx .Data ["Username" ] = ctx .Repo .Owner .Name
205204 ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
206- ctx .Data ["RefName" ] = ctx .Repo .RefName
207205 ctx .HTML (http .StatusOK , tplCommits )
208206}
209207
@@ -247,7 +245,6 @@ func FileHistory(ctx *context.Context) {
247245 ctx .Data ["Reponame" ] = ctx .Repo .Repository .Name
248246 ctx .Data ["FileName" ] = fileName
249247 ctx .Data ["CommitCount" ] = commitsCount
250- ctx .Data ["RefName" ] = ctx .Repo .RefName
251248
252249 pager := context .NewPagination (int (commitsCount ), setting .Git .CommitsRangeSize , page , 5 )
253250 pager .SetDefaultParams (ctx )
0 commit comments