diff options
Diffstat (limited to 'lib/gitlab_update.rb')
-rw-r--r-- | lib/gitlab_update.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab_update.rb b/lib/gitlab_update.rb index cf3953e..8a403a5 100644 --- a/lib/gitlab_update.rb +++ b/lib/gitlab_update.rb @@ -13,6 +13,11 @@ class GitlabUpdate end def exec + # Skip update hook for local push when key_id is nil + # It required for gitlab instance to make local pushes + # without validation of access + exit 0 if @key_id.nil? + if api.allowed?('git-receive-pack', @repo_name, @key_id, @refname) exit 0 else |