Open jumperchen opened 12 years ago
Reference : http://code.google.com/p/tortoisegit/ (coz in 64bit windows need msysgit )
This used to work - does anyone know if TortoiseGit changed their binary name?
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. :)
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.
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. :)
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
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.
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
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.
"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.
So what is the current work-around so that I can use the Tortoise package?
@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?)
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.