blob: fc92bc3856180323283f55597af2ba28b52f3f6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module GitHelpers
def project_hook_exists?(project)
Gitlab::GitalyClient::StorageSettings.allow_disk_access do
project_path = project.repository.raw_repository.path
File.exist?(File.join(project_path, 'hooks', 'post-receive'))
end
end
end
|