nirvdrum/svn2git — Issue #37: getting syntax errors when running svn2git
Author: hotribao
Created: 2011-12-28 03:14:13+00:00
State: open

Environment:
ubuntu 10.04.
git version 1.7.0.4
git-svn installed
ruby 1.8.7
svn2git 2.1.1

When running the following command

/var/lib/gems/1.8/bin/svn2git http://host/svn/myrepo

I then get the following syntax errors. What did I miss in the installation?

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:246: syntax error, unexpected $undefined, expecting ')' (SyntaxError)
run_command("git checkout \"#{branch}"\")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:253: syntax error, unexpected tIDENTIFIER, expecting kEND
run_command("git checkout svn/trunk")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:253: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
run_command("git checkout svn/trunk")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:254: syntax error, unexpected tIDENTIFIER, expecting kEND
run_command("git branch -D master")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:254: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '('
run_command("git branch -D master")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:255: syntax error, unexpected tIDENTIFIER, expecting kEND
run_command("git checkout -f -b master")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:255: syntax error, unexpected tUMINUS, expecting kDO or '{' or '('
run_command("git checkout -f -b master")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:257: syntax error, unexpected tIDENTIFIER, expecting kEND
run_command("git checkout -f master")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:257: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '('
run_command("git checkout -f master")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:262: syntax error, unexpected tIDENTIFIER, expecting kEND
run_command("git gc")
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:266: syntax error, unexpected tCONSTANT, expecting kEND
log "Running command: #{cmd}"
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:271: syntax error, unexpected kDO_BLOCK, expecting kEND
IO.popen(cmd) do |stdout|
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:272: syntax error, unexpected kDO_BLOCK, expecting kEND
stdout.each do |line|
^
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:273: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '('
/var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git/migration.rb:309: syntax error, unexpected kEND, expecting $end
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/svn2git-2.1.1/lib/svn2git.rb:1
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /var/lib/gems/1.8/gems/svn2git-2.1.1/bin/svn2git:23
from /var/lib/gems/1.8/bin/svn2git:19:in `load'
from /var/lib/gems/1.8/bin/svn2git:19