Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-08-23 02:19:35 +0300
committerGabriel Mazetto <brodock@gmail.com>2017-08-28 16:37:52 +0300
commit6303a02ba2c63687d03c72754d398e3e3473ac61 (patch)
tree5dcd17a2103e14b89a12f6db8abd32437173078e /db/fixtures/development/04_project.rb
parent20750bad2c9a97e2f0be70487177d756101cb074 (diff)
Prevent new / renamed project from using a repository path that already exists on disk
There are some redundancies in the validation steps, and that is to preserve current error messages behavior Also few specs have to be changed in order to fix madness in validation logic.
Diffstat (limited to 'db/fixtures/development/04_project.rb')
-rw-r--r--db/fixtures/development/04_project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/fixtures/development/04_project.rb b/db/fixtures/development/04_project.rb
index 6553c5d457a..c0b7ee5e935 100644
--- a/db/fixtures/development/04_project.rb
+++ b/db/fixtures/development/04_project.rb
@@ -75,7 +75,7 @@ Sidekiq::Testing.inline! do
project.send(:_run_after_commit_queue)
end
- if project.valid? && project.valid_repo?
+ if project.errors.any? && project.valid_repo?
print '.'
else
puts project.errors.full_messages