Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2ce8d8

Browse files
author
Julian Taylor
committed
use .find instead of .index to remove git remotes
.index is not supported by ruby 1.8.5
1 parent dc5ae1d commit b2ce8d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/svn2git/migration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def get_branches
196196
@remote = run_command("git branch -r --no-color").split(/\n/).collect do |b|
197197
b.gsub(/\*/,'').strip
198198
end.find_all do
199-
|b| (@remote_repos.index{ |r| (b =~ /^#{r}\//) == 0 }) == nil
199+
|b| (@remote_repos.find{ |r| (b =~ /^#{r}\//) == 0 }) == nil
200200
end
201201

202202
# Tags are remote branches that start with "tags/".

0 commit comments

Comments
 (0)