nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

`popen': No such file or directory #35

Closed c0d3phined closed 12 years ago

c0d3phined commented 12 years ago

Hello, when I try to run svn2git https://my-repo/svn/project --trunk trunk --branches branches --tags tags , i get the following error which i can't seem to find any resolution for through google.

$ svn2git https://127.0.0.1:8443/svn/project --trunk trunk --branches branche
s --tags tags
openpath: pathname too long (ignored)
        Directory ""
        File "git"
c:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migration.rb:270:i
n `popen': No such file or directory - git svn init --prefix=svn/ --no-metadata
--trunk=trunk --tags=tags --branches=branches https://127.0.0.1:8443/svn/project (Errno::ENOENT)
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:270:in `run_command'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:178:in `clone!'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:27:in `run!'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/bin/svn2git:26:in
 `<top (required)>'
        from c:/Ruby192/bin/svn2git:19:in `load'
        from c:/Ruby192/bin/svn2git:19:in `<main>'

any help or direction would be greatly appreciated.
thanks.

Update : This error only occurs when i run that command in the msysgit git prompt. When I run this command in windows command prompt, it looks like it's going to work, until the end. Here is that error :

Checked out HEAD:
  https://127.0.0.1:8443/svn/project/trunk r39
C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migration.rb:270:i
n `popen': No such file or directory - GIT_COMMITTER_DATE='2011-11-08 05:38:19 +
0000' git tag -a -m 'project rough draft before restructuring into an object f
ormat;' 'dev' 'svn/tags/dev' (Errno::ENOENT)
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:270:in `run_command'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:221:in `block in fix_tags'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:213:in `each'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:213:in `fix_tags'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/lib/svn2git/migra
tion.rb:29:in `run!'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.1.0/bin/svn2git:26:in
 `<top (required)>'
        from C:/Ruby192/bin/svn2git:19:in `load'
        from C:/Ruby192/bin/svn2git:19:in `<main>'

again, an issue with popen

nirvdrum commented 12 years ago

I haven't done any testing in Windows personally, but earlier in your trace it looked like it was a filename length limit. Are you able to check out the entire repo from SVN fine? It may be a case of your upstream server using a different filesystem that could support longer names than your local one can.

c0d3phined commented 12 years ago

Hey thanks for the reply.

Yes i'm able to checkout without problems. I'm running a local svn, on the same comp that i'm trying to run svn2git. When I run svn2git, I get an error @ migration.rb > IO.popen. I've been doing some research and it looks like it's something not right with ruby, even though I've updated the version & reinstalled twice... it doesn't seem to understand/like IO.popen.

I don't believe it's an issue with svn2git, though...i may be wrong

nirvdrum commented 12 years ago

Have you managed to get past this issue? If so, do you mind if we close out the ticket?

c0d3phined commented 12 years ago

Hello there. No i was not, i decided to go with another tool. thank you though...you may close this ticket

nirvdrum commented 12 years ago

Closing due to lack of prerequisite info.