13385: login-sync test works even if there is no fuse group
[arvados.git] / services / login-sync / arvados-login-sync.gemspec
index 61d5dd82f78d850c480f030d934768b3548271b8..4fb31a742e91ea76372f6fa8986748dde7414d21 100644 (file)
@@ -7,8 +7,9 @@ if not File.exists?('/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|