mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-17 19:25:49 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
|
||||
require 'digest'
|
||||
require 'fileutils'
|
||||
require 'open3'
|
||||
|
||||
if ENV['NO_COLOR']
|
||||
SHELL_RED = ''
|
||||
@ -19,7 +18,7 @@ else
|
||||
end
|
||||
|
||||
LEFTHOOK_GLOBAL_CONFIG_PATH = File.expand_path("../lefthook.yml", __dir__)
|
||||
HOOK_PATH = Open3.capture3("git rev-parse --path-format=absolute --git-path hooks/pre-push")[0].strip
|
||||
HOOK_PATH = `git rev-parse --path-format=absolute --git-path hooks/pre-push`.split.last
|
||||
HOOK_DATA = <<~HOOK
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
Reference in New Issue
Block a user