Merge branch 'master' of github.com:gitlabhq/gitlabhq
This commit is contained in:
commit
1d04a6fda7
3 changed files with 6 additions and 3 deletions
|
@ -21,6 +21,7 @@ env:
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get install libicu-dev -y
|
- sudo apt-get install libicu-dev -y
|
||||||
install:
|
install:
|
||||||
|
- "travis_retry bundle config build.nokogiri --use-system-libraries"
|
||||||
- "travis_retry bundle install --deployment --without production --retry 5"
|
- "travis_retry bundle install --deployment --without production --retry 5"
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@ -37,3 +38,5 @@ before_script:
|
||||||
script: "bundle exec rake $TASK --trace"
|
script: "bundle exec rake $TASK --trace"
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
git:
|
||||||
|
depth: 10
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
- [![build status](https://ci.gitlab.org/projects/1/status.png?ref=master)](https://ci.gitlab.org/projects/1?ref=master) on ci.gitlab.org (master branch)
|
- [![build status](https://ci.gitlab.org/projects/1/status.png?ref=master)](https://ci.gitlab.org/projects/1?ref=master) on ci.gitlab.org (master branch)
|
||||||
|
|
||||||
- [![Code Climate](https://codeclimate.com/github/gitlabhq/gitlabhq.png)](https://codeclimate.com/github/gitlabhq/gitlabhq)
|
- [![Code Climate](https://codeclimate.com/github/gitlabhq/gitlabhq.svg)](https://codeclimate.com/github/gitlabhq/gitlabhq)
|
||||||
|
|
||||||
- [![Coverage Status](https://coveralls.io/repos/gitlabhq/gitlabhq/badge.png?branch=master)](https://coveralls.io/r/gitlabhq/gitlabhq)
|
- [![Coverage Status](https://coveralls.io/repos/gitlabhq/gitlabhq/badge.png?branch=master)](https://coveralls.io/r/gitlabhq/gitlabhq)
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ class CompareService
|
||||||
def execute(current_user, source_project, source_branch, target_project, target_branch)
|
def execute(current_user, source_project, source_branch, target_project, target_branch)
|
||||||
# Try to compare branches to get commits list and diffs
|
# Try to compare branches to get commits list and diffs
|
||||||
#
|
#
|
||||||
# Note: Use satellite only when need to compare between to repos
|
# Note: Use satellite only when need to compare between two repos
|
||||||
# because satellites are slower then operations on bare repo
|
# because satellites are slower than operations on bare repo
|
||||||
if target_project == source_project
|
if target_project == source_project
|
||||||
Gitlab::CompareResult.new(
|
Gitlab::CompareResult.new(
|
||||||
Gitlab::Git::Compare.new(
|
Gitlab::Git::Compare.new(
|
||||||
|
|
Loading…
Reference in a new issue