summaryrefslogtreecommitdiff
path: root/bin/rbot
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-03-12 02:52:53 +0300
committerdmitry kim <jason@nichego.net>2008-03-12 02:52:53 +0300
commit15846be1af87eefbb2d339c4c28ffbc9c1268d6a (patch)
tree34ba61b16357c092b6d6003cbc4d3b7dc2bb580c /bin/rbot
parent539c526cf8ec0b4b07d84541cd3ce27d08ac946b (diff)
* we're now "git version", not "svn version" by default
Diffstat (limited to 'bin/rbot')
-rwxr-xr-xbin/rbot8
1 files changed, 3 insertions, 5 deletions
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/)