1

I converted my svn subdirectory with svn:externals leading to github via its svn gateway into bitbucket and uploaded on bitbucket (I wanted to shift to DVCS, bitbucket allows personal repos so I can free my server from serving svn and having it on the net). I did via sshing to my server.

I also installed MercurialEclipse on my nb and wanted to clone my project (using Windows 7). It ended up with the error message

cloning subrepo vendor/jqmkt from git://github.com/herby/jquery-mochikit-tags.git abort: Systém nemôže nájsť zadaný súbor. Command line: D:\Herby\fbcanvas\vendor:hg -y update -r 14 -C --config ui.merge=internal:fail, error code: -1

(it uses localized hg.exe obviously, the message means "Cannot find the given file")

How can I make it clone the git subrepository? Or recommend different eclipse plugin that can.

If everything fails, I can probably use the old "svn gateway tactics", but I'd like to prevent it if possible.

  • Is git installed on your computer ? Can you clone the git repo from the command line ? And the Mercurial one ? – krtek Dec 07 '11 at 14:30
  • I installed git. Did not help. Mercurial repositories without git subrepos work fine out of the box. –  Dec 07 '11 at 15:04
  • cli cloning of git repo worked fine, too. –  Dec 07 '11 at 15:10
  • The "svn gateway tactics" failed as well. –  Dec 07 '11 at 15:25
  • Were you able to clone the mercurial repo on the command line ? I'm pretty sure the problem is linked to the fact that Eclipse cannot access your Git executable. – krtek Dec 07 '11 at 15:40
  • I wasn't. it was sort-of surprising, since git was in the path. I did not find any config where to put it for hg.exe. :-/ –  Dec 07 '11 at 15:58
  • The problem seems to be that Git for Windows exposes `git.cmd` into the path, not `git.exe`. ;-( –  Dec 07 '11 at 16:05

1 Answers1

0

Ok, the solution is:

  1. You need to install Git for Windows.
  2. During installation, you MUST select the third, most dangerous "Run Git and included Unix tools from Windows Command Prompt" option.
  3. Restart Eclipse.

The culprit is git.exe which is not found (Git for Windows only puts git.cmd into the path when you select the second option in 2., which does not help for tools that are searching for git.exe explicitly (as hg.exe, the Mercurial executable, does).