refs #13369 "Merge branch '13369-update-ubuntu1404-dockerfile'".
[arvados.git] / sdk / cli / arvados-cli.gemspec
index 47c84a97e238fe01708116676ff373060d33f21c..fd48b4852df4f1223eb7ce6fc125fc2234e78f6d 100644 (file)
@@ -8,7 +8,8 @@ if not File.exist?('/usr/bin/git') then
 end
 
 git_latest_tag = `git describe --abbrev=0`
-git_timestamp = `git log -n1 --first-parent --format=%ct`
+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|