fix for #673. Reporting revision number from TRACKS_ROOT instead of the current directory. To use this fix if you're using rc1 / trunk, you need to recreate your environment.rb

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@746 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-03-18 15:21:14 +00:00
parent 7173b121d6
commit bde47e44c7

View file

@ -85,7 +85,7 @@ end
MOBILE_CONTENT_TYPE = 'tracks/mobile'
Mime::Type.register(MOBILE_CONTENT_TYPE, :m)
info = `svn info --config-dir /etc/subversion`[/Last Changed Rev: (.*?)\n/]
info = `svn info #{RAILS_ROOT} --config-dir /etc/subversion`[/Last Changed Rev: (.*?)\n/]
if info
TRACKS_VERSION = '1.50-rc1-rev'+info[/(\d+)/]
else