Commit 8ca9bf1d authored by Douwe Maan's avatar Douwe Maan

Fix variable name and change copy

parent 80543e0a
...@@ -63,7 +63,7 @@ module Files ...@@ -63,7 +63,7 @@ module Files
end end
if !project.empty_repo? && different_branch? && repository.branch_exists?(@branch_name) if !project.empty_repo? && different_branch? && repository.branch_exists?(@branch_name)
raise ValidationError, 'Branch with such name already exists. You need to switch to this branch in order to make changes' raise ValidationError, "A branch called #{@branch_name} already exists. Switch to that branch in order to make changes"
end end
end end
......
...@@ -56,7 +56,7 @@ class GitOperationService ...@@ -56,7 +56,7 @@ class GitOperationService
start_project: repository.project, start_project: repository.project,
&block) &block)
start_branch ||= branch_name start_branch_name ||= branch_name
verify_start_branch_exists!(start_project.repository, start_branch_name) verify_start_branch_exists!(start_project.repository, start_branch_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment