Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing tno.euphorie repo #12

Open
wichert opened this issue Apr 18, 2011 · 17 comments
Open

Error importing tno.euphorie repo #12

wichert opened this issue Apr 18, 2011 · 17 comments

Comments

@wichert
Copy link

wichert commented Apr 18, 2011

I am trying to convert http://code.simplon.biz/svn/projects/tno/euphorie/Develop to git, but running svn2git on that URL quickly results in an error:

$ svn2git --authors ~/.git-authors http://code.simplon.biz/svn/projects/tno/euphorie/Develop
Found possible branch point: http://code.simplon.biz/svn/projects/tno/euphorie/Develop/trunk => http://code.simplon.biz/svn/projects/tno/euphorie/Develop/tags/1.0, 16165
Use of uninitialized value $u in substitution (s///) at /usr/lib/git-core/git-svn line 1730.
Use of uninitialized value $u in concatenation (.) or string at /usr/lib/git-core/git-svn line 1730.
refs/remotes/svn/trunk: 'http://code.simplon.biz/svn' not found in ''

error: pathspec 'master' did not match any file(s) known to git.
Counting objects: 6, done.
Writing objects: 100% (6/6), done.
Total 6 (delta 4), reused 6 (delta 4)
@wichert
Copy link
Author

wichert commented Apr 18, 2011

The underlying git svn error can be correct by passing --no-follow-parent when running git svn fetch (or clone), but svn2git does not appear to have an option to specify that parameter.

@nirvdrum
Copy link
Owner

Thanks for digging in more. Is there any chance you could provide a patch? If not, could you provide everything I would need to execute svn2git precisely as you would (public SVN repo, authors file, etc.)? As you can probably imagine, it's difficult to fix things like this when I don't have a repository that would behave the same way.

@wichert
Copy link
Author

wichert commented May 12, 2011

The URL for the repository is in the ticket and supports anonymous access. This is the contents of the authors file:

wichert = Wichert Akkerman <[email protected]>
pilz = Alexander Pilz <[email protected]>
cornae = Cornelis Kolbach <[email protected]>
thomas = Wolfgang Thomas <[email protected]>
jcbrand = Jan-Carel Brand <[email protected]>
brand = Jan-Carel Brand <[email protected]>
maurits = Maurits van Rees <[email protected]>

@cybertoast
Copy link

I have the same issue with svn2git, but adding the --no-follow-parent in migration.rb did not solve the problem. Still have
error: pathspec 'master' did not match any file(s) known to git.

The sequence of events for me are a bit different from wichert's though:

Running command: git svn fetch 
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.

@sleicht
Copy link

sleicht commented Jun 30, 2011

I stumbled over the same issue and like cybertoast I tried to patch migration.rb limited success. At first it continued but later the same error occurred. Does someone have any idea where the problem might be and how to solve it?

Thanks

@yamanyar
Copy link

I editted the migration.rb but no luck

svn2git http://43.212.96.18/repos/ebs/ox-moved-to-git-donot-use/ -v --authors ~/authors.txt --no-minimize-url
Running command: git svn init --prefix=svn/ --no-metadata --no-minimize-url --trunk=trunk --tags=tags --branches=branches http://43.212.96.18/repos/ebs/ox-moved-to-git-donot-use/
Initialized empty Git repository in /home/kaan/temp/.git/
Running command: git config svn.authorsfile /home/kaan/authors.txt
Running command: git svn fetch  --no-follow-parent
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: '/repos/!svn/bc/100/ebs/ox-moved-to-git-donot-use' path not found
W: Do not be alarmed at the above message git-svn is just searching aggressively for old history.
This may take a while on large repositories
http://webcache.googleusercontent.com/search?q=cache:gTBFDvH2dgAJ:https://github.com/nirvdrum/svn2git/issues/12+svn2git+%22error:+pathspec+%27master%27+did+not+match+any+file%28s%29+known+to+git.%2Checked through r92100                                        
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.
Running command: git gc
Nothing new to pack.

@xueruini
Copy link

Got the same problem. Any solution now?

@mejibyte
Copy link

Just got the same issue while running svn2git with this public repository:

svn2git svn://svn.icculus.org/tremulous/ --verbose

@xueruini
Copy link

I overcome the issue with two steps:

  • use --no-follow-parent in migration.rb;
  • list all authors appearing svn log in authors.txt, including (no author).

@mejibyte
Copy link

In my case, the error message disappeared when I removed the trailing slash, like this:

svn2git svn://svn.icculus.org/tremulous --verbose

@wongster80
Copy link

Ran into this issue. I simply removed the .git directory from the working directory and it started working. I did not have to add the extra flag --no-follow-parent. I think the .git directory might have become corrupted from my previous svn2git failed attempts.

@cclark
Copy link

cclark commented Nov 21, 2011

I'm experiencing the same issue. I receive the same error
error: pathspec 'master' did not match any file(s) known to git.

I've tried adding the --no-follow-parent with no luck. I'm still digging in to what the underlying error really means to see if there is anything else I can try but don't have any leads at this point.

@statico
Copy link

statico commented Dec 2, 2011

I can confirm that adding --no-follow-parent to the two git svn fetch commands in migration.rb solved this issue for me. (My repo has the standard tags/trunk layout and the URL I used did not end in a slash.)

@bsutton
Copy link

bsutton commented Feb 19, 2012

I had the same problem and like wongster80 removing a possibly corrupt .git directory fixed the problem.

I had previously started then conversion and then ctrl-c part way through.

@mrazzari
Copy link

+1 to removing a possibly corrupt .git directory. It worked for me.

@paulschreiber
Copy link

Hit this problem. No trailing slash. Removing .git did not work. Adding --no-follow-parent did not working. I used a file:/// URL for my svn repo, if that matters.

Running command: git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches file:///tmp/svn
Initialized empty Git repository in /Users/paul/cmsfsvn/.git/
Running command: git config --local svn.authorsfile authors.txt
Running command: git svn fetch --no-follow-parent 
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git config --local --get user.name
Running command: git config --local --get user.email
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.
command failed:
2>&1 git checkout -f master

@paulschreiber
Copy link

i ended up importing from my original server (svn+ssh://) which was slow, but worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests