From b0ab2bf2815cb553a199faad1b9970c2193208df Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 4 Sep 2008 14:43:53 +0200 Subject: launch_here: fix svn version codepath 'up' was a leftover variabled since the code was in bin/rbot. Use SCM_DIR instead. --- launch_here.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'launch_here.rb') diff --git a/launch_here.rb b/launch_here.rb index 63d05705..b57afa4e 100755 --- a/launch_here.rb +++ b/launch_here.rb @@ -39,12 +39,12 @@ begin rev = "unknown revision" end $version << " (#{branch} branch, #{rev})" - elsif File.directory? File.join(up, '.svn') + elsif File.directory? File.join(SCM_DIR, '.svn') rev = " (unknown revision)" begin svn_out = `svn info` rev = " (revision #{$1}" if svn_out =~ /Last Changed Rev: (\d+)/ - svn_st = `svn st #{up}` + svn_st = `svn st #{SCM_DIR}` rev << ", local changes" if svn_st =~ /^[MDA] / rev << ")" rescue => e -- cgit v1.2.3