diff options
author | Takuya Noguchi <takninnovationresearch@gmail.com> | 2019-02-25 11:19:36 +0300 |
---|---|---|
committer | Takuya Noguchi <takninnovationresearch@gmail.com> | 2019-02-27 16:41:34 +0300 |
commit | a565f3d88d9c2e38b615378298b8db1f306ebd53 (patch) | |
tree | 43a28d5025f7dac46326b6e7a99e57a95c6f97f2 /app/services/commits | |
parent | a5174cf0fcfd0ae77d25ac5208b7aa371d7d7b73 (diff) |
Fix misspellings in app/spec executable lines
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Diffstat (limited to 'app/services/commits')
-rw-r--r-- | app/services/commits/create_service.rb | 4 |
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 |