Commit fab7c59b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Allow local pushes without update check

parent 87e2d6e9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment