Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
1d04a6fd
Commit
1d04a6fd
authored
Aug 30, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
14f5199c
0ef9ee18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
.travis.yml
.travis.yml
+3
-0
README.md
README.md
+1
-1
app/services/compare_service.rb
app/services/compare_service.rb
+2
-2
No files found.
.travis.yml
View file @
1d04a6fd
...
...
@@ -21,6 +21,7 @@ env:
before_install
:
-
sudo apt-get install libicu-dev -y
install
:
-
"
travis_retry
bundle
config
build.nokogiri
--use-system-libraries"
-
"
travis_retry
bundle
install
--deployment
--without
production
--retry
5"
branches
:
only
:
...
...
@@ -37,3 +38,5 @@ before_script:
script
:
"
bundle
exec
rake
$TASK
--trace"
notifications
:
email
:
false
git
:
depth
:
10
README.md
View file @
1d04a6fd
...
...
@@ -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)
-
[
![Code Climate
](
https://codeclimate.com/github/gitlabhq/gitlabhq.
pn
g
)
](https://codeclimate.com/github/gitlabhq/gitlabhq)
-
[
![Code Climate
](
https://codeclimate.com/github/gitlabhq/gitlabhq.
sv
g
)
](https://codeclimate.com/github/gitlabhq/gitlabhq)
-
[
![Coverage Status
](
https://coveralls.io/repos/gitlabhq/gitlabhq/badge.png?branch=master
)
](https://coveralls.io/r/gitlabhq/gitlabhq)
...
...
app/services/compare_service.rb
View file @
1d04a6fd
...
...
@@ -4,8 +4,8 @@ class CompareService
def
execute
(
current_user
,
source_project
,
source_branch
,
target_project
,
target_branch
)
# Try to compare branches to get commits list and diffs
#
# Note: Use satellite only when need to compare between to repos
# because satellites are slower th
e
n operations on bare repo
# Note: Use satellite only when need to compare between t
w
o repos
# because satellites are slower th
a
n operations on bare repo
if
target_project
==
source_project
Gitlab
::
CompareResult
.
new
(
Gitlab
::
Git
::
Compare
.
new
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment