mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 17:46:07 +10:00
Skip git hooks if oldrev or newrev is nil
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -58,6 +58,8 @@ module Gitlab
|
||||
def pass_git_hooks?(user, project, ref, oldrev, newrev)
|
||||
return true unless project.git_hook
|
||||
|
||||
return true unless newrev && oldrev
|
||||
|
||||
git_hook = project.git_hook
|
||||
|
||||
# Prevent tag removal
|
||||
|
||||
Reference in New Issue
Block a user