]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - launch_here.rb
fix: update deprecated git option
[user/henk/code/ruby/rbot.git] / launch_here.rb
index 7c4b2a5fcc61c65ee167fae8cf85256fca77648b..118f02ab5d759ee077c9083c404a61340de73690 100755 (executable)
@@ -16,7 +16,7 @@ begin
 
   if File.exists? '.git'
     begin
-      git_out = `git log -1 --pretty=raw | git name-rev --stdin`.split("\n")
+      git_out = `git log -1 --pretty=raw | git name-rev --annotate-stdin`.split("\n")
       commit, branch_spec = git_out.first.scan(/^commit (\S+)(?: \((\S+)\))?$/).first
       $version_timestamp = git_out[4].split[-2].to_i
       subject = git_out[6].strip rescue ""