From 15846be1af87eefbb2d339c4c28ffbc9c1268d6a Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Wed, 12 Mar 2008 02:52:53 +0300 Subject: * we're now "git version", not "svn version" by default --- bin/rbot | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/rbot b/bin/rbot index 8e762569..6d8ecec3 100755 --- a/bin/rbot +++ b/bin/rbot @@ -74,13 +74,11 @@ require 'etc' require 'getoptlong' require 'fileutils' -$version="0.9.11-svn" +$version="0.9.11-git" $opts = Hash.new -if $version =~ /svn/ - if defined?(SVN_DIR) and File.exists?(File.join(SVN_DIR, '.git')) - $version.sub!('svn', 'git') - +if $version =~ /git/ + if defined?(SCM_DIR) and File.exists?(File.join(SCM_DIR, '.git')) git_out = `git status` git_out.match(/^# On branch (.*)\n/) -- cgit v1.2.3