-
Notifications
You must be signed in to change notification settings - Fork 2.7k
git-svn not able to clone from specific repository location #1418
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
Comments
There are at least a handful tickets that are almost certainly describing the very same issue: https://github.com/git-for-windows/git/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+%22died+waiting+for+dll+loading%2C+errno+11%22 So I am marking this as a duplicate of #650. The common work-around seems to be to use 32-bit Git for Windows. |
I did look through those tickets, but didn't think they were related to my problem:
In summary, I don't think this is a duplicate of #650. |
Is this ticket dead now that it was deemed a duplicate and closed? I would like to appeal that decision, but I don't know if anybody will see my comments now that this ticket is closed. If I'm wrong and it is a duplicate, I'd like to hear why I'm mistaken. I'm new to github and don't see a way to send a message to @dscho, who closed the ticket. |
@ninevoltbatterie this is actually an issue that should be addressed by default in the installer. If you still experience this after reinstalling the 32-bit version, I would be interested in knowing more about this, as As to the specifics of the error message: I am rather convinced that the problem shows up only under certain circumstances, which means that it could possibly occur at different points in the execution, resulting in different specific error messages. What makes me believe that? There have been a few bugs in the past that have bitten us, where simple erroneous casts (e.g. |
(And sorry for the delay in answering: I started commenting, but got interrupted, my computer rebooted, and I was able to finish the comment only a few moments ago.) |
@dscho When I tried the 32-bit version of Git for Windows, I just installed it alongside my existing 64-bit install. Do I need to have uninstalled the 64-bit version first? I'd be happy with that workaround, but I remain unconvinced that the problem I'm seeing with my 64-bit is the same as the others had, since I can clone from my repository (if I only choose a subdirectory) and do all sorts of other client-side actions with my git repository. |
32-bit Git for Windows should just uninstall any previous Git for Windows, whether 32-bit or 64-bit. It is possible that it does not, and maybe that causes problems in and of itself. What I would suggest instead, if you need 32-bit Git for Windows only sporadically (or only for specific use cases) is to use a portable Git. They don't install into the Start Menu, and therefore can easily be installed side by side. That is exactly what I use to verify bugs in older versions: I have portable versions of them, allowing me to easily check whether I can reproduce an issue, and also whether any such issue is gone in newer versions.
The problems in I even had one case in the past where there was no explicit cast. The appropriate This is what I suspect to happen in pretty much all of the |
@dscho Thank you for elaborating. I tried portable, and got this (which I've seen in other tickets, and I tried running git-bash as administrator):
Trying to clone the repository anyway resulted in:
Rather than go down that road, I uninstalled both the 32 and 64-bit versions I had, then reinstalled the 32-bit version. I opened git-bash (as administrator), didn't get the mkdir errors, but got the following when I tried to do my "git svn clone":
|
Sorry, these are really warnings, and I keep meaning to shut them off.
This should be addressed as part of the installer (see https://github.com/git-for-windows/git/wiki/32-bit-issues for details). Can you try running |
OK, I tried running that but got output I can't even really decipher:
Also, the instructions say, "terminate even background processes that use the MSYS2 runtime, such as ssh-agent". I use another installation of cygwin on my PC, too. Could that be getting in the way? I do close it before trying any of this, but is there a way to be sure I've ended all the necessary processes? |
Is this running in an elevated CMD?
That's Cygwin. Not MSYS2. |
Yes. I ran it with "Run as administrator". The title bar on the CMD window says "Administrator: C:\Windows\System32\cmd.exe". |
Can you call |
I created a file 'mytest' in the same directory as 'rebaseall' with these contents:
Then trying to run it in the same manner, I get:
I'm a little confused by cmd calling dash calling dash here and I don't understand where this is going awry. |
Oh, you know what it is? It's CR/LF line endings... I had the very same issue in one of my build agents today. So this worked for me: usr\bin\dash.exe -c 'cd / && /usr/bin/dos2unix /usr/bin/rebaseall && /usr/bin/dash.exe /usr/bin/rebaseall' |
You have to call dash within dash to make sure that it executes the script using dash... And if I interpret the symptoms correctly, dash tries to execute the carriage return at the end of the lines as if it were a command... |
Running rebaseall in that manner ran without any output. My clone operation has begun successfully (but will run for a few hours yet). Thank you so much, @dscho , for your persistence and help. I really felt that I was at a dead end. Will you add a mention of this CR/LF issue to the page about the 32-bit issues that you linked to above? |
Oh, one thing- I needed to use double quotes around the "cd / && ..." portion. Something wasn't getting sent to dash correctly with single quotes. Note that it also echos the trailing single quote when using single quotes:
|
I feel this should be fixed instead ;-) |
I think I got it fixed in time for v2.16.1. Would you do me a favor and test it? (I am unfortunately really swamped with work, and it won't change for the rest of the month.) |
I downloaded the portable version of v2.16.1. From its root, in cmd.exe, I ran the command suggested on the 32-bit issues page. It ran silently and returned 0. I was able to git-svn clone my repository (at least start cloning it- I didn't let it run for hours to completion). Is that a sufficient test? |
Yes, thank you very much! |
Setup
Windows 7 64-bit
defaults?
to the issue you're seeing?
None I can think of.
Details
I've been using git-svn with a large Subversion repository. Recently the repository was moved to a new location on a new server with the same host name as the old server. Having run into problems trying to adjust the location, I'm just trying to do a fresh clone from the new location.
git-bash.
I expected to get a working copy of that location.
But when I try cloning a branch from the same server, it succeeds. In fact, I've tried cloning a couple of subdirectories within the root that I actually want, and those also succeeded. By "succeed", I mean it started populating its database in .git/. I interrupted this because of the size of the repository, so I haven't actually seen a working copy yet, but at least in these other locations, it gets started.
So somehow the error depends on the content/source of the repository. A coworker has made the same observations, and had never used git-svn with this repository before it was relocated.
URL to that repository to help us with testing?
It's a private repository.
The text was updated successfully, but these errors were encountered: