whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/1] Commit 5b09053: Makes more sense to log git info instead of adding it to json
Date Sun, 24 Jan 2016 11:22:13 GMT
Commit 5b09053d00091e325bc36e8232c1373a91170ea6:
    Makes more sense to log git info instead of adding it to json


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@apache.org>

------------------------------------------------------------
www/roster/public_nonldap_groups.rb                          | ++++ -
------------------------------------------------------------
5 changes: 4 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/roster/public_nonldap_groups.rb b/www/roster/public_nonldap_groups.rb
index 28e4f5d..ce31519 100644
--- a/www/roster/public_nonldap_groups.rb
+++ b/www/roster/public_nonldap_groups.rb
@@ -44,7 +44,6 @@
 
 info = {
   # There does not seem to be a useful timestamp here
-  git_info: GITINFO,
   groups: groups,
 }
 
@@ -57,9 +56,13 @@
   puts results
 elsif not File.exist?(ARGV.first) or File.read(ARGV.first) != results
 
+  puts "git_info: #{GITINFO}"
+
   out, err, rc = Open3.capture3('diff', '-u', ARGV.first, '-', stdin_data: results)
   puts out if err.empty? and rc.exitstatus == 1
 
   # replace file as contents have changed
   File.write(ARGV.first, results)
+else
+  puts "git_info: #{GITINFO}"
 end

Mime
View raw message