mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 03:30:13 +01:00
the svn rev number did not show up when you run tracks as a different user using --user and --group options of mongrel_rails. This was because svn is trying to open subversion options in the directory of the original user that is starting tracks. Pointing svn to an existing directory is enough for svn info to run.
Please note that this patch only changes the template. It does not change your own environment.rb. If you have the same problem, you'll need to change environment.rb by hand. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@717 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
bb703c1838
commit
d4843af2a2
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ end
|
|||
MOBILE_CONTENT_TYPE = 'tracks/mobile'
|
||||
Mime::Type.register(MOBILE_CONTENT_TYPE, :m)
|
||||
|
||||
info = `svn info`[/Last Changed Rev: (.*?)\n/]
|
||||
info = `svn info --config-dir /etc/subversion`[/Last Changed Rev: (.*?)\n/]
|
||||
if info
|
||||
TRACKS_VERSION = '1.50-trunk-rev'+info[/(\d+)/]
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue