From 1ab410caf8612589b37309b8cb1fa2f50bb1e097 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 4 Jun 2020 20:31:11 +0900 Subject: Revert "Fix a failure in bundle version with version outputs the version with build metadata" This reverts commit fcc8be0198a16cc5fa7d4827be0c781209b70f98. --- spec/bundler/support/helpers.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index 586603fbd7..731a2d9664 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -329,10 +329,9 @@ module Spec replace_version_file(version, dir: build_path) # rubocop:disable Style/HashSyntax - sys_exec("git rev-parse --short HEAD", :dir => source_root) build_metadata = { :built_at => loaded_gemspec.date.utc.strftime("%Y-%m-%d"), - :git_commit_sha => exitstatus.zero? ? out.strip : "unknown", + :git_commit_sha => sys_exec("git rev-parse --short HEAD", :dir => source_root).strip, } replace_build_metadata(build_metadata, dir: build_path) # rubocop:disable Style/HashSyntax -- cgit v1.2.3