fix commit page showing status for current default branch (#5650)
Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
This commit is contained in:
		
							parent
							
								
									0236856924
								
							
						
					
					
						commit
						97dafdc057
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -201,7 +201,7 @@ func Diff(ctx *context.Context) { | |||
| 		commitID = commit.ID.String() | ||||
| 	} | ||||
| 
 | ||||
| 	statuses, err := models.GetLatestCommitStatus(ctx.Repo.Repository, ctx.Repo.Commit.ID.String(), 0) | ||||
| 	statuses, err := models.GetLatestCommitStatus(ctx.Repo.Repository, commitID, 0) | ||||
| 	if err != nil { | ||||
| 		log.Error(3, "GetLatestCommitStatus: %v", err) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue