diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-11 18:27:42 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-11 18:27:42 +0300 |
commit | ba8321a52af4f5258526ed4f864bbf3e7a752571 (patch) | |
tree | e8be466a96c7b2183bfce9cd4aa31802feffcf47 /db/fixtures/development | |
parent | 3b0dcbf235c7705879345e96fe215b6a7f362d92 (diff) |
Skip creating the merge request if repo is empty
Diffstat (limited to 'db/fixtures/development')
-rw-r--r-- | db/fixtures/development/10_merge_requests.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/fixtures/development/10_merge_requests.rb b/db/fixtures/development/10_merge_requests.rb index c304e0706dc..30244ee4431 100644 --- a/db/fixtures/development/10_merge_requests.rb +++ b/db/fixtures/development/10_merge_requests.rb @@ -28,6 +28,8 @@ Gitlab::Seeder.quiet do project = Project.find_by_full_path('gitlab-org/gitlab-test') + next if project.empty_repo? # We don't have repository on CI + params = { source_branch: 'feature', target_branch: 'master', |