diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-04 20:31:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | 1ab410caf8612589b37309b8cb1fa2f50bb1e097 (patch) | |
tree | 2c54601386be8d8dd3dacdc5ddc412bf8501bc61 /spec/bundler/support | |
parent | 1161191a2a0411842a146bda95d6d9ce7aa0ee00 (diff) |
Revert "Fix a failure in bundle version with version outputs the version with build metadata"
This reverts commit fcc8be0198a16cc5fa7d4827be0c781209b70f98.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3184
Diffstat (limited to 'spec/bundler/support')
-rw-r--r-- | spec/bundler/support/helpers.rb | 3 |
1 files changed, 1 insertions, 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 |