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
getting error #23
Comments
I had the same issue and it seems to be due to an author in the SVN repository not being mapped in the authors file. If you run with Ensure every author is correctly mapped and you should be fine. |
This error message should probably bubble up even if not using verbose mode. I'll see what can be done. |
I am facing same issue. Any solution? |
There's no "solution" -- that's just how git-svn works. If you provide an authors file, every committer must be mapped without exception. All I can really do is provide a more helpful error message. |
I have all authors mapped properly. I didn't get Author related error as well.
|
Same issue with public SVN repo also...
|
I'm getting the same issue. what was the solution? |
Sorry, not able to remember how I fixed it. I guess I abandoned the move halfway. |
if anyone else runs into this, I had 2 things wrong. 1 was a bad URL then I fixed the URL but the .gir dir seemed to stay corrupt. I deleted the .git and started fresh and it worked |
I am using plain |
I tried using the
|
I think this is a problem with git-svn, not svn2git. Please report your problem there. |
Yeah, the topic is a bit wrong, but it's an issue with git-config still, |
I had the same problem, but mine was related to a non-standard svn layout. And as @basejump mentioned, make sure to delete the .git/ folder, before you try out a new argument. This solved it for me. |
i am seeing a workaround to this problem by explicitly setting the authors path in my command, like so: --authors ~/.svn2git/authors/authors.txt i know this defeats the purpose of just throwing that txt file in that dir and calling it day, not having to define it in your command, but at least it works. onto the question: so why is it that if i rely on svn2git to peek inside that directory it has trouble defining an author; yet if i explicitly define where the author path is in the command then it proceeds without fail? it's the same file in the same location. it only fails if svn2git is allowed to find the file on its own. also, the docs aren't clear about whether you have to create that .svn2git/ directory or if it is supposed to be created when you install svn2git. i had to create it as it wasn't there after i installed it. |
@SonnyCrockett The svn2git documentation is a bit unclear on this point, but it looks like you need to copy your authors.txt file into a FILE named ~/.svn2git/authors. No period, no extension, not a directory, just "authors". Bit of a strange choice there, but the utility properly finds my authors file when it's placed there with nothing passed on the command line. |
@SonnyCrockett @nk9 I've actually wrapped this functionality into subgeezer so that it actually prompts you on each SVN username for forename, surname and email. Check it out. |
nice! |
I feel a bit embarrassed about this, but the best that can come from making a stupid mistake is that the next person can learn from it. So here goes: I got this same "pathspec 'master'" error and tried removing the .git folder. Didn't help. Here was my command:
My repository has the standard structure with trunk, tags and branches. But what I was missing was the correct URL! My repo didn't live at /path-to, it lived at /path-to/myrepo. As soon as I gave the correct URL, everything started working. Debugging tip: I figured this out by trying to only download trunk using this command, which resulted in the much more helpful error below:
The moral of the story is: double-check your URL! |
@SonnyCrockett @nk9 Documentation problems certainly should be filed as an issue and pull requests are always welcomed. Since the proper use of the authors stuff has nothing to do with the pathspec problem this issue is about, please consider opening a new issue to track discussion in. |
svn2git https://hemna@phphtmllib.svn.sourceforge.net/svnroot/phphtmllib --authors ../authors-transform.txt
error: pathspec 'master' did not match any file(s) known to git.
it creates a .git dir in my current working directory, but that's it.
The text was updated successfully, but these errors were encountered: