1

I've followed this tutorial on setting up git-gui so I can get access to google code git repositories but I am still getting clone failed. I really don't understand the problem. I have made a _netrc file and I have created a HOME environmental variable yet the problem is still there.

Is there anyone out there who could shed some light on this situation? It would be much appreciated. Thanks.

M Davies
  • 255
  • 1
  • 3
  • 11

1 Answers1

1

You can debug the process with a:

set GIT_CURL_VERBOSE=1
git clone https://code.google.com/p/yourProject

Your environment variable %HOME% should reference an existing directory (not necessarily C:\HOME as in the tutorial, but any path you want), where _netrc has been created.

Then, make sure your %HOME%\_netrc file does contain:

machine code.google.com
login (your Gmail login, which is usually your email address)
password (your Gmail password)
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for your quick reply. I've debugged the process and I've tried cloning the google code git repository through gui bash and I get an error saying that the progam can't start because libidn-11.dll is missing? – M Davies Oct 31 '13 at 23:43
  • @MDavies Then check your PATH: msysgit should be first. libidn-11.dll is only used by GoW (Gnu On Windows https://github.com/bmatzelle/gow/wiki) – VonC Nov 01 '13 at 05:43
  • msysgit isn't in my path. It seems I have no msysgit directory on my computer. All I have is "C:\Program Files(x86)\bin" in my PATH. – M Davies Nov 02 '13 at 22:52
  • @MDavies then go to the folder where you installed your msysgit program (It doesn't have to be called msysgit), and launch `git-cmd.bat`. Run in it `git-gui`. – VonC Nov 03 '13 at 07:12
  • I assume this is the gitk.cmd file in the "C:\Program Files (x86)\Git\cmd" directory? Because I don't have a git-cmd.bat file where (I'm assuming) msysgit is installed. When I run it I get a popup telling me "Cannot find a git repository here." – M Davies Nov 04 '13 at 10:02
  • @MDavies then don't rely on the broken install: download the 7z archive (https://code.google.com/p/msysgit/downloads/list?can=2&q=7z&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount), unzip it anywhere, and launch the `git-cmd.bat`. – VonC Nov 04 '13 at 10:05
  • Done that and I'm still receiving that libidn-11.dll missing problem when I try cloning an existing repository. Sorry about this. – M Davies Nov 04 '13 at 15:26
  • @MDavies that is a path issue, then: check `%PATH%` in your `git-cmd.bat` session, and try to keep it minimal. – VonC Nov 04 '13 at 15:33
  • I've changed the `%PATH%` to be that of the bin for the unzipped 7z archive. So: `C:\Users\xxx\msysgit\bin` still having that dll problem. I checked the `%PATH%` in the `git-cmd.bat` and it comes out as `C:\Users\xxx\msysgit\\bin` – M Davies Nov 04 '13 at 20:32
  • @MDavies Did you simplify (just in a DOS session) your PATH? As in `C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\prgs\git\PortableGit-1.8.4-preview20130916\bin` – VonC Nov 05 '13 at 06:12
  • Well, my path in the DOS session isn't like that, it is as I said; just `C:\Users\xxx\msysgit\\bin` – M Davies Nov 05 '13 at 17:25
  • @MDavies I understand your git path differs, but my point was to simplify your %PATH% until it remains only the bare minimum for windows, plus the path to your msysgit. And see if the error persists then. – VonC Nov 06 '13 at 06:49
  • I see. I'll look into it. Thanks for your help. I'll try it and I'll probably put it to one side for a while as I have other things I need to look at. And if all else fails I can just use Tortoise SVN. – M Davies Nov 08 '13 at 19:36