mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix (#9838)
This commit is contained in:
		@@ -373,7 +373,8 @@ func CompareDiff(ctx *context.Context) {
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	defer headGitRepo.Close()
 | 
						defer headGitRepo.Close()
 | 
				
			||||||
	if err := parseBaseRepoInfo(ctx, headRepo); err != nil {
 | 
						var err error
 | 
				
			||||||
 | 
						if err = parseBaseRepoInfo(ctx, headRepo); err != nil {
 | 
				
			||||||
		ctx.ServerError("parseBaseRepoInfo", err)
 | 
							ctx.ServerError("parseBaseRepoInfo", err)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -415,6 +416,11 @@ func CompareDiff(ctx *context.Context) {
 | 
				
			|||||||
	beforeCommitID := ctx.Data["BeforeCommitID"].(string)
 | 
						beforeCommitID := ctx.Data["BeforeCommitID"].(string)
 | 
				
			||||||
	afterCommitID := ctx.Data["AfterCommitID"].(string)
 | 
						afterCommitID := ctx.Data["AfterCommitID"].(string)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if ctx.Data["Assignees"], err = ctx.Repo.Repository.GetAssignees(); err != nil {
 | 
				
			||||||
 | 
							ctx.ServerError("GetAssignees", err)
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ctx.Data["Title"] = "Comparing " + base.ShortSha(beforeCommitID) + "..." + base.ShortSha(afterCommitID)
 | 
						ctx.Data["Title"] = "Comparing " + base.ShortSha(beforeCommitID) + "..." + base.ShortSha(afterCommitID)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ctx.Data["IsRepoToolbarCommits"] = true
 | 
						ctx.Data["IsRepoToolbarCommits"] = true
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user