fastlane/lib/fastlane/environment_printer.rb in fastlane-2.133.0 vs fastlane/lib/fastlane/environment_printer.rb in fastlane-2.134.0

- old
+ new

@@ -209,11 +209,11 @@ table_content = { "fastlane" => Fastlane::VERSION, "OS" => os_version, "Ruby" => RUBY_VERSION, "Bundler?" => Helper.bundler?, - "Git" => `git --version`.strip.split("\n").first, + "Git" => git_version, "Installation Source" => anonymized_path($PROGRAM_NAME), "Host" => "#{product} #{version} (#{build})", "Ruby Lib Dir" => anonymized_path(RbConfig::CONFIG['libdir']), "OpenSSL Version" => OpenSSL::OPENSSL_VERSION, "Is contained" => Helper.contained_fastlane?.to_s, @@ -290,8 +290,14 @@ # Make sure to ask the user first, as some people don't # use a clipboard manager, so they might lose something important def self.copy_to_clipboard(string) require 'open3' Open3.popen3('pbcopy') { |input, _, _| input << string } + end + + def self.git_version + return `git --version`.strip.split("\n").first + rescue + return "not found" end end end