Skip to content
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

tgit.exe not found on windows 7 64bit #10

Open
jumperchen opened this issue Mar 13, 2012 · 13 comments
Open

tgit.exe not found on windows 7 64bit #10

jumperchen opened this issue Mar 13, 2012 · 13 comments

Comments

@jumperchen
Copy link

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'
@ryanhanwu
Copy link

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

@wbond
Copy link
Owner

wbond commented Mar 13, 2012

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

@jumperchen
Copy link
Author

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. :)

@wbond
Copy link
Owner

wbond commented Mar 14, 2012

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.

@jumperchen
Copy link
Author

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. :)

@asfaltboy
Copy link

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 added a commit to asfaltboy/sublime_tortoise that referenced this issue Apr 2, 2012
@AdamHarte
Copy link

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.

@asfaltboy
Copy link

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

@wbond
Copy link
Owner

wbond commented Apr 12, 2012

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.

@AdamHarte
Copy link

"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.

@borekb
Copy link

borekb commented May 14, 2012

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

@asfaltboy
Copy link

  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
Copy link

@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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants