sublime_tortoise icon indicating copy to clipboard operation
sublime_tortoise copied to clipboard

tgit.exe not found on windows 7 64bit

Open jumperchen opened this issue 13 years ago • 13 comments

If right-click on the git file, it will show "[Error 2] The system cannot find the file specified" error. The issue is that the executor file path is wrong from the following code.

 self.git_path = os.path.dirname(tortoise_proc_path) + '\\tgit.exe'

jumperchen avatar Mar 13 '12 07:03 jumperchen

Reference : http://code.google.com/p/tortoisegit/ (coz in 64bit windows need msysgit )

ryanhanwu avatar Mar 13 '12 08:03 ryanhanwu

This used to work - does anyone know if TortoiseGit changed their binary name?

wbond avatar Mar 13 '12 12:03 wbond

git.exe is its current name, but I think the path should be able to customize if the name is changed. For msysgit, it provides two installation files and both installing path are different, so using users-setting is better. :)

jumperchen avatar Mar 14 '12 10:03 jumperchen

I'm not currently using either Windows, and thus by extendsion, Tortoise. I'll probably be able to get to this eventually, but if someone wants to take a swing at fixing the issue and making sure it works, I can double check it and release a new version.

wbond avatar Mar 14 '12 12:03 wbond

I fixed that issue locally by changing the following code in tortoise.py file.

 self.git_path = os.path.dirname(tortoise_proc_path) + '\\tgit.exe'

->

self.git_path = "c:\xxxx\git.exe"

And this can fix the issue, so you can fix the issue anytime when you available. :)

jumperchen avatar Mar 15 '12 01:03 jumperchen

Can also happen on 32-bit windows without tgit.exe in path (for some reason). I'll submit a pull request for this in a bit

asfaltboy avatar Apr 02 '12 20:04 asfaltboy

I am on Win7 64bit, and get this issue. Whenever I right click in either the Folders sidebar or in the actual editor when the project is using GIT, i get the message "[Error 2] The system cannot find the file specified", and the right-click menu does not show. This does not happen with SVN projects, or projects with to source control.

In the settings I set the git_tortoiseproc_path to my GIT TortoiseProc.exe path, but same thing happens.

This error shows even if I set enable_menus to false in this plugins settings.

AdamHarte avatar Apr 11 '12 21:04 AdamHarte

please see my fork at https://github.com/asfaltboy/sublime_tortoise, it solves the problem by letting you config the location of git.exe/tgit.exe when it's not on system path... anyway I hope wbond accepts the pull request

asfaltboy avatar Apr 11 '12 21:04 asfaltboy

So it appears TortoiseGit no longer includes tgit.exe. @asfaltboy Your patch is a start, but it would be good for it to be a bit smarter about trying to find Git in some default locations instead of every user having to set an option before the package works.

wbond avatar Apr 12 '12 03:04 wbond

"be a bit smarter about trying to find Git in some default locations" sounds like a good plan. But could have an option as a fallback.

AdamHarte avatar Apr 12 '12 20:04 AdamHarte

So what is the current work-around so that I can use the Tortoise package?

borekb avatar May 14 '12 11:05 borekb

  1. download my fork https://github.com/asfaltboy/sublime_tortoise,
  2. get "git.exe" or "tgit.exe" (you can usually get it by installing the git package available here http://git-scm.com/ ),
  3. uncomment and set the new option in Tortoise.sublime-settings ("git_tgit_path").
  4. profit

asfaltboy avatar May 17 '12 05:05 asfaltboy

@wbond seeking in default locations is a good start, but unfortunately, such a solution is bound to fail the moment tgit maintainers decide to change the default windows installation path...

What we could do instead is provide a "browse dialog" to ask the user to locate the file themselves. Unfortunately, ST2 does not allow this feature at this time (at least by this api documentation)

Anyone has another suggestion (besides doing a full fledged search for the current tgit.exe filename?)

asfaltboy avatar Dec 16 '12 21:12 asfaltboy