7478: Config load fix & test updates about instance type decoupling
[arvados.git] / sdk / cli / arvados-cli.gemspec
index 10be5e72c44fcf201f260feb256a2c3c46b2d6c5..fd48b4852df4f1223eb7ce6fc125fc2234e78f6d 100644 (file)
@@ -7,8 +7,9 @@ if not File.exist?('/usr/bin/git') then
   exit
 end
 
-git_latest_tag - `git describe --abbrev=0`
-git_timestamp = `git log -n1 --first-parent --format=%ct`
+git_latest_tag = `git describe --abbrev=0`
+git_latest_tag = git_latest_tag.encode('utf-8').strip
+git_timestamp, git_hash = `git log -n1 --first-parent --format=%ct:%H .`.chomp.split(":")
 git_timestamp = Time.at(git_timestamp.to_i).utc
 
 Gem::Specification.new do |s|