Commit 111a131a authored by Albert Salim's avatar Albert Salim

Merge branch 'pl-security-harness-fix' into 'master'

Fix `scripts/security-harness` to support older git versions

See merge request gitlab-org/gitlab!72695
parents 07c517de ef96a3a2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment