Skip to content

Commit

Permalink
Use medium log format
Browse files Browse the repository at this point in the history
Yields the necessary "Date: " format.
Closes #34
  • Loading branch information
jc00ke committed May 25, 2013
1 parent 1bfe76e commit f54ba57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def self.source_code_version_raw
m = s.match(/^Revision: (\d+)/s)
return " - SVN revision: #{m[1]}"
elsif File.directory?(Rails.root.join(".git"))
s = `git log -1 2>&1`
s = `git log -1 --format=medium 2>&1`
m = s.match(/^Date: (.+?)$/s)
return " - Git timestamp: #{m[1]}"
elsif File.directory?(Rails.root.join(".hg"))
Expand Down

0 comments on commit f54ba57

Please sign in to comment.