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
iv
gitlab-ce
Commits
4d00ed21
Commit
4d00ed21
authored
Jul 05, 2016
by
Timothy Andrew
Committed by
Timothy Andrew
Jul 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appease rubocop.
parent
dffdc7b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+0
-1
spec/lib/gitlab/git_access_spec.rb
spec/lib/gitlab/git_access_spec.rb
+0
-1
No files found.
lib/gitlab/git_access.rb
View file @
4d00ed21
...
...
@@ -108,7 +108,6 @@ module Gitlab
actor
if
actor
.
is_a?
(
DeployKey
)
end
def
deploy_key_can_read_project?
if
deploy_key
deploy_key
.
projects
.
include?
(
project
)
...
...
spec/lib/gitlab/git_access_spec.rb
View file @
4d00ed21
...
...
@@ -128,7 +128,6 @@ describe Gitlab::GitAccess, lib: true do
rugged
=
project
.
repository
.
rugged
author
=
{
email:
"email@example.com"
,
time:
Time
.
now
,
name:
"Example Git User"
}
merge_index
=
rugged
.
merge_commits
(
target_branch
,
source_branch
)
Rugged
::
Commit
.
create
(
rugged
,
author:
author
,
committer:
author
,
message:
"commit message"
,
parents:
[
target_branch
,
source_branch
],
tree:
merge_index
.
write_tree
(
rugged
))
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