nirvdrum/svn2git — Issue #41: error: pathspec 'master' did not match any file(s) known to git.
Author: ensonic
Created: 2012-01-02 22:37:59+00:00
State: open

Instead of hijacking ticket #23, I'll try as a new one as it might be a different issue. See the log below:

- svn2git-2.1.2 (a --version option would be nice)
- the author file is okay, but same error happens without --authors
- it does not matter wheter I use --username or not
- it does not matter wheter I use --nobranches or not (but I don't want to preserve the branches anyway)
- same error happens if I convert the whole repo (giving trunk instead of trunk/bml) or another subproject (in the same repo)

I am getting a bit desperate and wonder what else I could try to shed light on this issue. Should't "git branch -l" show something already. Maybe you could add some sanity checks after each step and error out earlier. I have the feeling that the error in the description just means "sonmething failed along the way" :/

> svn2git https://buzztard.svn.sourceforge.net/svnroot/buzztard/trunk/bml --username ensonic --authors ../authors.txt --verbose --nobranches
Running command: git svn init --prefix=svn/ --username=ensonic --no-metadata --trunk=trunk --tags=tags https://buzztard.svn.sourceforge.net/svnroot/buzztard/trunk/bml
Initialized empty Git repository in /home/ensonic/projects/buzztard/git/bml/.git/
Using higher level of URL: https://buzztard.svn.sourceforge.net/svnroot/buzztard/trunk/bml => https://buzztard.svn.sourceforge.net/svnroot/buzztard
Running command: git config --local svn.authorsfile ../authors.txt
Running command: git svn fetch
W: Ignoring error from SVN, path probably does not exist: (160013): Filesystem has no item: File not found: revision 100, path '/trunk/bml'
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
Checked through r100
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.
command failed:
2>&1 git checkout -f master