public
Rubygem
Description: Simple tool to help track git and svn vendor branches in a git repository
Homepage: http://github.com/evilchelu/braid/wikis/home
Clone URL: git://github.com/evilchelu/braid.git
minimize crashing on random input
evilchelu (author)
Sun Jul 20 18:26:57 -0700 2008
norbert (committer)
Tue Aug 19 08:40:38 -0700 2008
commit  c3baa80dfb6a29245f253c30b20fa23ad9465929
tree    891553160a32441d5feac092de94526cd26f36e9
parent  4451b8407dadaa4be073167fbcdd152cae4a9b2b
...
158
159
160
161
 
162
163
164
...
158
159
160
 
161
162
163
164
0
@@ -158,7 +158,7 @@ module Braid
0
       # Checks git and svn remotes.
0
       def remote_exists?(remote)
0
         # TODO clean up and maybe return more information
0
-        !!File.readlines(".git/config").find { |line| line =~ /^\[(svn-)?remote "#{remote}"\]/ }
0
+        !!File.readlines(".git/config").find { |line| line =~ /^\[(svn-)?remote "#{Regexp.escape(remote)}"\]/ }
0
       end
0
 
0
       def reset_hard(target)

Comments