summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <tim@tim-mbp.local>2016-07-05 08:55:46 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-07-13 13:24:56 +0530
commit4d00ed21ebbc9fd4a1f1b13cbed9a0a9ad2a2a9e (patch)
tree3174c4ef24b3efae8ae94ea188103f15884d0f7b
parentdffdc7b27c1f89e4e26b4714834e4f147c656206 (diff)
downloadgitlab-ce-4d00ed21ebbc9fd4a1f1b13cbed9a0a9ad2a2a9e.tar.gz
Appease rubocop.
-rw-r--r--lib/gitlab/git_access.rb1
-rw-r--r--spec/lib/gitlab/git_access_spec.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index cfb48ac2382..9f5bb9d62cd 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -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)
diff --git a/spec/lib/gitlab/git_access_spec.rb b/spec/lib/gitlab/git_access_spec.rb
index 059d8a2c355..db33c7a22bb 100644
--- a/spec/lib/gitlab/git_access_spec.rb
+++ b/spec/lib/gitlab/git_access_spec.rb
@@ -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