mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Some improvements
This commit is contained in:
@@ -221,7 +221,6 @@ func handleCreateBranchError(ctx *context.Context, err error, form *forms.NewBra
|
||||
}
|
||||
|
||||
ctx.ServerError("CreateNewBranch", err)
|
||||
return
|
||||
}
|
||||
|
||||
// CreateBranch creates new branch in repository
|
||||
|
||||
@@ -95,10 +95,10 @@ func CreateBranchFromIssue(ctx *context.Context) {
|
||||
}
|
||||
|
||||
if err := issues_model.CreateIssueDevLink(ctx, &issues_model.IssueDevLink{
|
||||
IssueID: issue.ID,
|
||||
LinkType: issues_model.IssueDevLinkTypeBranch,
|
||||
IssueID: issue.ID,
|
||||
LinkType: issues_model.IssueDevLinkTypeBranch,
|
||||
LinkedRepoID: repo.ID,
|
||||
LinkIndex: form.NewBranchName,
|
||||
LinkIndex: form.NewBranchName,
|
||||
}); err != nil {
|
||||
ctx.ServerError("CreateIssueDevLink", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user