gitlab-org--gitlab-foss/spec/support
Dmitriy Zaporozhets 6d22e96744 Merge branch 'fix-submodule-error-with-forked-project' into 'master'
Fix "Revspec not found" errors when viewing diffs in a forked project with submodules

## What does this MR do?

This MR fixes an error that occurs when viewing diffs in a forked project with submodules.

### Are there points in the code the reviewer needs to double check?

Testing this code was tricky. The only way this problem shows up is if the origin project does NOT have the submodule update commit. The introduction of gitlab-test-fork serves that purpose: it contains a submodule update not present in gitlab-test.

### Why was this MR needed?

A user would receive a 500 error when trying to view a merge request with a submodule update. #1413 has details on how to reproduce this issue.

### What are the relevant issue numbers / [Feature requests](http://feedback.gitlab.com/)?

#1413

See merge request !512
2015-04-30 16:47:35 +00:00
..
api_helpers.rb
capybara.rb Don't use capybara-screenshot in CI environments 2015-04-25 21:33:17 -04:00
db_cleaner.rb
login_helpers.rb
matchers.rb
mentionable_shared_examples.rb
reference_filter_spec_helper.rb Merge branch 'rs-issue-2269' into 'master' 2015-04-28 08:34:34 +00:00
repo_helpers.rb
select2_helper.rb
taskable_shared_examples.rb
test_env.rb Fix "Revspec not found" errors when viewing diffs in a forked project with submodules 2015-04-27 20:42:38 -07:00