diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-22 16:18:45 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 13:23:34 +0300 |
commit | f8ee07d9ee6d01b255902ad976a07beef59a95fb (patch) | |
tree | b72f437ffe28b36d99fe2b24713127ad27f191e3 /lib/gitlab/git_post_receive.rb | |
parent | f5d71ad8f3d1899a29bc12c4fcc8847b14195e3a (diff) |
User not defined in PostReceive#process_project_changes
When Gitlab::GitPostReceive#changes_refs is empty
user would not get defined and nil would be passed
to PostReceive#after_project_changes_hooks which would
then throw an error.
Diffstat (limited to 'lib/gitlab/git_post_receive.rb')
-rw-r--r-- | lib/gitlab/git_post_receive.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_post_receive.rb b/lib/gitlab/git_post_receive.rb index e731e654f3c..f5470ffa2da 100644 --- a/lib/gitlab/git_post_receive.rb +++ b/lib/gitlab/git_post_receive.rb @@ -11,7 +11,7 @@ module Gitlab @changes = deserialize_changes(changes) end - def identify(revision) + def identify(revision = nil) super(identifier, project, revision) end |