]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
bin/rbot: don't look for a svn revision if .svn doesn't exist
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 20 Jun 2008 09:30:57 +0000 (11:30 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 20 Jun 2008 09:30:57 +0000 (11:30 +0200)
bin/rbot

index 89c8688de2e179f3f062ec5a2c2fa5b26919faac..cee5974a05331920187a3dc4dff306a1d5dfeac5 100755 (executable)
--- a/bin/rbot
+++ b/bin/rbot
@@ -94,7 +94,7 @@ if $version =~ /git/
       rev << ")"
     rescue => e
       puts e.inspect
-    end
+    end if File.directory?(File.join(up, '.svn'))
     $version += rev
   end
 end