diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-09-04 14:43:53 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-09-04 14:43:53 +0200 |
commit | b0ab2bf2815cb553a199faad1b9970c2193208df (patch) | |
tree | 761d10692953995fb453996cc220cf54d6802ba7 /launch_here.rb | |
parent | 6f0258b1b2d9f715c7c35897bb0b1226747e428e (diff) |
launch_here: fix svn version codepath
'up' was a leftover variabled since the code was in bin/rbot. Use
SCM_DIR instead.
Diffstat (limited to 'launch_here.rb')
-rwxr-xr-x | launch_here.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |