summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorTakuya Noguchi <takninnovationresearch@gmail.com>2019-02-25 17:19:36 +0900
committerTakuya Noguchi <takninnovationresearch@gmail.com>2019-02-27 22:41:34 +0900
commita565f3d88d9c2e38b615378298b8db1f306ebd53 (patch)
tree43a28d5025f7dac46326b6e7a99e57a95c6f97f2 /app/services
parenta5174cf0fcfd0ae77d25ac5208b7aa371d7d7b73 (diff)
downloadgitlab-ce-a565f3d88d9c2e38b615378298b8db1f306ebd53.tar.gz
Fix misspellings in app/spec executable lines
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to 'app/services')
-rw-r--r--app/services/commits/create_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/commits/create_service.rb b/app/services/commits/create_service.rb
index 34593e12bd5..a3b87c20761 100644
--- a/app/services/commits/create_service.rb
+++ b/app/services/commits/create_service.rb
@@ -45,7 +45,7 @@ module Commits
def validate!
validate_permissions!
validate_on_branch!
- validate_branch_existance!
+ validate_branch_existence!
validate_new_branch_name! if different_branch?
end
@@ -64,7 +64,7 @@ module Commits
end
end
- def validate_branch_existance!
+ def validate_branch_existence!
if !project.empty_repo? && different_branch? && repository.branch_exists?(@branch_name)
raise_error("A branch called '#{@branch_name}' already exists. Switch to that branch in order to make changes")
end