summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-12-10 01:45:13 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-12-10 01:45:13 +0800
commit57e3e942de1adef2c8621905370f07d7da7870c4 (patch)
treec460177a357cede978769e1f7b31277a0236a38d
parent5430122c56928849df44520353342150d8f37d51 (diff)
downloadgitlab-ce-57e3e942de1adef2c8621905370f07d7da7870c4.tar.gz
Don't pass the actor for deploy key, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_19579483
-rw-r--r--lib/gitlab/git_access.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index 412f42c6320..d483038e8e9 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -189,6 +189,8 @@ module Gitlab
case actor
when User
actor
+ when DeployKey
+ nil
when Key
actor.user
end