whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 7d81d25: try harder to strip whitespace
Date Thu, 10 Mar 2016 12:57:42 GMT
Commit 7d81d25a38dcc6afba6ef82f87b1e029a69eb714:
    try harder to strip whitespace
    I'll admit that I can see no reason why this should be necessary, and
    yet it seems to occur in log files.  ¯\_(ツ)_/¯


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
lib/whimsy/asf.rb                                            | ++ -
------------------------------------------------------------
3 changes: 2 additions, 1 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf.rb b/lib/whimsy/asf.rb
index 9e37ab0..b813d0e 100644
--- a/lib/whimsy/asf.rb
+++ b/lib/whimsy/asf.rb
@@ -19,8 +19,9 @@ def self.library_mtime
     times = sources.map {|source| File.mtime(source)}
     times.max.gmtime
   end
+
   def self.library_gitinfo
     return @info if @info
-    @info = `git show --format="%h  %ci"  -s HEAD`.chomp
+    @info = `git show --format="%h  %ci"  -s HEAD`.strip
   end
 end

Mime
View raw message