summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-01 09:05:32 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-01 09:05:32 +0800
commit646e02b521e2122f3a386d5a1c51d278b9ac0e77 (patch)
tree3bbd0064d2a13b4444bd0cbe2305829a2f812a63 /models
parenta3fb627350e5ba293d240ab14ec52995bdefa102 (diff)
downloadgitea-646e02b521e2122f3a386d5a1c51d278b9ac0e77.tar.gz
gitea-646e02b521e2122f3a386d5a1c51d278b9ac0e77.zip
typo
Diffstat (limited to 'models')
-rw-r--r--models/pull.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/pull.go b/models/pull.go
index f1b92bff58..5157b61fef 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -339,7 +339,7 @@ func (pr *PullRequest) Merge(doer *User, baseGitRepo *git.Repository) (err error
return nil
}
-// patchConflicts is a list of conflit description from Git.
+// patchConflicts is a list of conflict description from Git.
var patchConflicts = []string{
"patch does not apply",
"already exists in working directory",
@@ -347,7 +347,7 @@ var patchConflicts = []string{
"error:",
}
-// testPatch checks if patch can be merged to base repository without conflit.
+// testPatch checks if patch can be merged to base repository without conflict.
// FIXME: make a mechanism to clean up stable local copies.
func (pr *PullRequest) testPatch() (err error) {
if pr.BaseRepo == nil {
@@ -384,7 +384,7 @@ func (pr *PullRequest) testPatch() (err error) {
if err != nil {
for i := range patchConflicts {
if strings.Contains(stderr, patchConflicts[i]) {
- log.Trace("PullRequest[%d].testPatch (apply): has conflit", pr.ID)
+ log.Trace("PullRequest[%d].testPatch (apply): has conflict", pr.ID)
fmt.Println(stderr)
pr.Status = PullRequestStatusConflict
return nil