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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ca9b7ab3
Commit
ca9b7ab3
authored
May 05, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CE upstream] Fix spinach
parent
014d9259
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
db/fixtures/development/14_builds.rb
db/fixtures/development/14_builds.rb
+1
-1
lib/gitlab/authority_analyzer.rb
lib/gitlab/authority_analyzer.rb
+2
-2
No files found.
db/fixtures/development/14_builds.rb
View file @
ca9b7ab3
...
...
@@ -16,7 +16,7 @@ class Gitlab::Seeder::Builds
end
def
ci_commits
commits
=
@project
.
repository
.
commits
(
'master'
,
nil
,
5
)
commits
=
@project
.
repository
.
commits
(
'master'
,
path:
nil
,
limit:
5
)
commits_sha
=
commits
.
map
{
|
commit
|
commit
.
raw
.
id
}
commits_sha
.
map
do
|
sha
|
@project
.
ensure_ci_commit
(
sha
,
'master'
)
...
...
lib/gitlab/authority_analyzer.rb
View file @
ca9b7ab3
...
...
@@ -21,7 +21,7 @@ module Gitlab
@repo
=
@merge_request
.
target_project
.
repository
list_of_involved_files
.
each
do
|
path
|
@repo
.
commits
(
@merge_request
.
target_branch
,
path
,
COMMITS_TO_CONSIDER
).
each
do
|
commit
|
@repo
.
commits
(
@merge_request
.
target_branch
,
path
:
path
,
limit:
COMMITS_TO_CONSIDER
).
each
do
|
commit
|
@users
[
commit
.
author
]
+=
1
if
commit
.
author
end
end
...
...
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