-
Notifications
You must be signed in to change notification settings - Fork 443
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
command failed: 2>&1 git checkout -f master #90
Comments
Got the exact problem |
Did you try the using the --nobranches & --notags options? |
Yes,
|
It looks like you have a broken SVN repo. You may have to specify the starting revision greater than 66. |
I've just managed to svn commit in the old repo, it doesn't seem to be broken. Now I have revision 67 and the very same error. Looking at http://wibom.svn.sourceforge.net/ everything seems to be fine. |
Unfortunately that doesn't mean the repo isn't broken. E.g., the Selenium SVN repo is actively developed against but its history was in some really funky state that made it impossible to convert to git. I can't really speak to whether your repo is corrupted or not. The error message just indicates there might be something awry. |
Well, all the SVN repositories I had tried failed to convert using So for me currently the solution to convert other "Open Source" projects that seem to be abandoned to git to subsequently work on them is using http://svn2github.com/. I'll happily give |
@moreaki Well, the reason I asked if you tried the --notags and --nobranches option is because you indicated in your initial post that your repo doesn't have tags or branches, but the command you ran didn't match that statement. Beyond that, I ran your command and it worked just fine for me. I have git 1.7.9.5 installed. Note that svn2git is just a wrapper around git-svn. So, if the repo can't be processed for you with git-svn, it'll never work with svn2git. |
I had exactly same issue, it turned out the cause was that I had a "non-standard repository layout", ie. no trunk/, branches/ or tags/ directories at the top. All I needed to do is add |
Closing for now since I was able to convert the repo in question without any problems. Please re-open if you find otherwise. |
I got around this by removing the .git directory from the working directory. It was created during previous failed attempts at running svn2git. I also needed --rootistrunk. |
jpbonn's comment above helped me. |
The --rootistrunk flag fixed this for me in some circumstances. Thanks @yktoo! |
As proposed in #144 by @ludwigschwardt FYI: I had the topic error on default options:
Then, tried with
And so it turned into "xxx is not a complete URL" issue. Cheers. |
Thanks for the feedback. Unfortunately, I have no control over what git-svn provides for error messages. The best I can do is pass them back. Running with the |
Your suggestion worked, thank you @yktoo |
I am hitting this with a standard repo layout:
|
@benson-basis What does your repository look like at that point? It looks like git-svn had some difficulty with the repo at some point in the process. |
I'm really sorry, that was entirely pilot error and a mis-spelled URL that I missed 4 times. I was just about to delete my comment before you got to it. |
Hi guys, instead of use --rootistrunk which creates to me a "xxx is not a complete URL" issue like @ktalik said... I used --notrunk and worked like a charm. |
Try to delete the remaining .git (ls -al) and restart. |
For me , ( simple , standard tortoise repos ) , after trying all the options, only @OscarAkaElvis 's solution worked . So thanks.. :-) |
Same boat as x9t9 (also a tortoise repo), notrunk is the only thing that worked |
@jpbonn's solution to remove the .git directory and add |
Running |
running rm -rf .git and adding --rootistrunk worked for me too. thanks |
running rm -r .git worked for me thanks. |
I must be too dumb for the existing svn2git solutions, since I have started with
http://john.albin.net/git/convert-subversion-to-git
proceeded to
https://github.com/JohnAlbin/git-svn-migrate
and am now trying to import a simple (what appears to be a standard) svn project using your approach with snv2git, which quits my attempts with a nonchalant 'command failed':
The same happens when I invoke the command as follows:
Truly, I don't believe a very much simpler svn project can be found to convert; no branches, no tags, no nothing, only a trunk.
The text was updated successfully, but these errors were encountered: