mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix NewCommitStatus (#9434)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -41,8 +41,8 @@ func NewCommitStatus(ctx *context.APIContext, form api.CreateStatusOption) {
 | 
			
		||||
	//   schema:
 | 
			
		||||
	//     "$ref": "#/definitions/CreateStatusOption"
 | 
			
		||||
	// responses:
 | 
			
		||||
	//   "200":
 | 
			
		||||
	//     "$ref": "#/responses/StatusList"
 | 
			
		||||
	//   "201":
 | 
			
		||||
	//     "$ref": "#/responses/Status"
 | 
			
		||||
	sha := ctx.Params("sha")
 | 
			
		||||
	if len(sha) == 0 {
 | 
			
		||||
		ctx.Error(400, "sha not given", nil)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user