mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Page: Commits and fix #249
This commit is contained in:
		@@ -56,12 +56,14 @@ func Commits(ctx *middleware.Context) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Both `git log branchName` and `git log commitId` work.
 | 
			
		||||
	ctx.Data["Commits"], err = ctx.Repo.Commit.CommitsByRange(page)
 | 
			
		||||
	commits, err := ctx.Repo.Commit.CommitsByRange(page)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		ctx.Handle(500, "CommitsByRange", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	commits = models.ValidCommitsWithEmails(commits)
 | 
			
		||||
 | 
			
		||||
	ctx.Data["Commits"] = commits
 | 
			
		||||
	ctx.Data["Username"] = userName
 | 
			
		||||
	ctx.Data["Reponame"] = repoName
 | 
			
		||||
	ctx.Data["CommitCount"] = commitsCount
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user