diff options
author | dmitry kim <jason@nichego.net> | 2008-03-12 02:52:53 +0300 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-03-12 02:52:53 +0300 |
commit | 15846be1af87eefbb2d339c4c28ffbc9c1268d6a (patch) | |
tree | 34ba61b16357c092b6d6003cbc4d3b7dc2bb580c /bin | |
parent | 539c526cf8ec0b4b07d84541cd3ce27d08ac946b (diff) |
* we're now "git version", not "svn version" by default
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rbot | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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/) |