]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
fix: update deprecated git option
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Sun, 24 Sep 2023 20:09:39 +0000 (22:09 +0200)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Mon, 25 Sep 2023 08:41:23 +0000 (10:41 +0200)
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 ""