-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
VS2019 - Switching solutions disables TGIT #59
Comments
I was surprised to see, that seemly one specific solution does not allow "global" (solution-wide" git commands, but document-only commands! |
It tries to find the .git folder in the solution folder. It caches if it was able to find the folder for 30 seconds. So that might cause a problem while switching solutions. |
I know now the difference between the "old" and this "new" branch. Eventually … https://stackoverflow.com/questions/53796823/git-directory-in-git-worktree-not-a-directory … tells the needed things to enable the TGit commands in the worktree branch (not cloned). |
The "correct" .git folder is for this worktree branch in "..\master.git\worktrees\PS-15.1" And the .git file points with its content to it:
|
Thanks for the info! Very helpful. Should be ready to parse the .git file and use that info in the extension. Will look into adding that in the next version :) Documentation:
|
Do you have a plan, when to publish a next version, fixing this issue, which you categorized as enhancement? |
Sorry no plan yet. Really busy with personal live at the moment (my daughter was born ❤️), so hard to find time to work on the extension :( So for now the best I can promise: It is on my todo list and will not forget about it! |
Found some spare time at work, try the new release 🚀 ! |
Oh wow, you found some spare time to get this issue resolved 👍 and I was from Dec. 16th out of office and unable to check this release. :( In the path of the So the needed steps are:
I'm really sorry, that I wasn't able to validate your quickly provided fix, created in the really seldom spare time as young father! I hope, that you and your family had a good end of 2019 and a good start into 2020! |
Try the new release: https://github.com/sboulema/TGit/releases/tag/v4.15.72 🚀 Could you send me your gitdir file, can't find much about the format of the file content? |
I tried the next version and it seems to work after an error message after opening initially the TGIT menu: The
Thanks for your work to solve this issue!!! 👍 |
I think the solution is even simpler, you can just check for the .git file as you do it for the .git directory, see #77 I dont' have much experience with git (we just switched to it), but with the fix from above my TortoiseGit works well for worktrees. I tested it with TortoiseGit 2.13.0.1 and git version 2.37.1.windows.1. |
Thanks for the PR! |
If I open another solution from the VS2019 file menu TGIT disables all functions.
If I re-open the previous loaded solution, TGIT returns from completely disabled to enabled.
The text was updated successfully, but these errors were encountered: