From d4843af2a250557cdeba60dc5c2a3bb4847762ea Mon Sep 17 00:00:00 2001 From: lrbalt Date: Thu, 28 Feb 2008 08:40:07 +0000 Subject: [PATCH] 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 --- tracks/config/environment.rb.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/config/environment.rb.tmpl b/tracks/config/environment.rb.tmpl index 462443f9..99591a29 100644 --- a/tracks/config/environment.rb.tmpl +++ b/tracks/config/environment.rb.tmpl @@ -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