better compatibillity with old git versions to get the current rev.

This commit is contained in:
MrZYX 2011-05-26 16:27:56 +02:00
parent 17521f99cf
commit c5630006b6

View file

@ -3,7 +3,7 @@
# the COPYRIGHT file.
git_cmd = `git log -1 --format="%H %ci"`
git_cmd = `git log -1 --pretty="format:%H %ci"`
if git_cmd =~ /^([\d\w]+?)\s(.+)$/
AppConfig[:git_revision] = $1
AppConfig[:git_update] = $2.strip