diff --git a/lib/redmine_git_hosting/patches/repository_git_patch.rb b/lib/redmine_git_hosting/patches/repository_git_patch.rb index dfac93d98..cc8274c87 100644 --- a/lib/redmine_git_hosting/patches/repository_git_patch.rb +++ b/lib/redmine_git_hosting/patches/repository_git_patch.rb @@ -318,7 +318,7 @@ def gitolite_hook_key def empty? - if extra_info.nil? || !extra_info.has_key?('heads') + if extra_info.nil? || ( !extra_info.has_key?('heads') && !extra_info.has_key?('branches') ) return true else return false