diff options
Diffstat (limited to 'services/agit/agit.go')
-rw-r--r-- | services/agit/agit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/agit/agit.go b/services/agit/agit.go index 4359557a1e..9f0ce75123 100644 --- a/services/agit/agit.go +++ b/services/agit/agit.go @@ -80,7 +80,7 @@ func ProcReceive(ctx context.Context, repo *repo_model.Repository, gitRepo *git. continue } - headBranch := "" + var headBranch string userName := strings.ToLower(opts.UserName) if len(curentTopicBranch) == 0 { @@ -104,7 +104,7 @@ func ProcReceive(ctx context.Context, repo *repo_model.Repository, gitRepo *git. // create a new pull request if len(title) == 0 { - has := false + var has bool title, has = opts.GitPushOptions["title"] if !has || len(title) == 0 { commit, err := gitRepo.GetCommit(opts.NewCommitIDs[i]) |