diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-08 09:56:19 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-08 09:56:19 +0200 |
commit | fab7c59b85d3a931b9a965f90fc25d77a6c85f14 (patch) | |
tree | c5e8fe76fc4ef99b135aec9fb6afb2b1d5f5eeae /lib/gitlab_update.rb | |
parent | 87e2d6e98a004bd3535bb2379d24309181128f57 (diff) | |
download | gitlab-shell-fab7c59b85d3a931b9a965f90fc25d77a6c85f14.tar.gz |
Allow local pushes without update check
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 |