Commit f0c74e20 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Print the Git version for EE specific check

Because we're highly depending on how Git works in those scripts
and we found the exact same script passed locally but not in CI?

https://gitlab.com/gitlab-org/gitlab-ee/issues/5960#note_72641299

Not that it must be Git version, but it would be nice if we could
have more debugging information.
parent e79bebec
......@@ -3,6 +3,7 @@
require_relative 'ee_specific_check/ee_specific_check'
include EESpecificCheck # rubocop:disable Style/MixinUsage
git_version
base = find_compare_base
......
......@@ -3,6 +3,7 @@
require_relative 'ee_specific_check/ee_specific_check'
include EESpecificCheck # rubocop:disable Style/MixinUsage
git_version
base = find_compare_base
......
......@@ -18,6 +18,10 @@ module EESpecificCheck
module_function
def git_version
say run_git_command('--version')
end
def say(message)
puts "\n#{message}", "\n" # puts would eat trailing newline
end
......
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