Skip to content

Commit c9f188e

Browse files
committed
Merge pull request #35 from jc00ke/fix-git-log-format
Use medium log format
2 parents 1bfe76e + f54ba57 commit c9f188e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def self.source_code_version_raw
7272
m = s.match(/^Revision: (\d+)/s)
7373
return " - SVN revision: #{m[1]}"
7474
elsif File.directory?(Rails.root.join(".git"))
75-
s = `git log -1 2>&1`
75+
s = `git log -1 --format=medium 2>&1`
7676
m = s.match(/^Date: (.+?)$/s)
7777
return " - Git timestamp: #{m[1]}"
7878
elsif File.directory?(Rails.root.join(".hg"))

0 commit comments

Comments
 (0)