Expand
Open In New Window
*Git Init Here*
*Git GUI*
*Git Bash*
Share With
SVN Checkout
TortoiseSVN
Restore Previous Versions
Include In Library
*Git Init Here*
*Git GUI*
*Git Bash*
Send To
Cut
Copy
Delete
Rename
New
Properties
Is this a known bug and is there a workaround?
Note this also happened with 1.7.6-preview20111014.
I don't see that here at least with Windows 7 x64. Although I don't
have a "Git Init Here" either - so perhaps you installed something
else too? TortoiseGit perhaps?
"Git Init Here" should only appear if the current dir is not a git
repo. If it is, a bunch of other options appear.
This is a typical artifact of installing two versions of the shell
extension. Perhaps the OP have two installations of Git for Windows?
According to Add/remove programs, I only have the one. I thought I
would try to uninstall it and make sure both entries went away, then
reinstall and see if only one came back, but when I try to uninstall, I
get "Runtime error (at 18:1292): Could not call proc".
Are there instructions somewhere to manually uninstall msysGIT?
I'm not sure what this Background key is for, but removing the
Git-Cheetah entry from it got rid of the duplicate menu entries.
> I seem to have found and fixed the problem. I noticed that the CLSID for
> Git-Cheetah was listed in the registry twice under the Directory type.
> Normally it is under shellex\ContextMenuHandlers, but it was also listed
> under Background\shellex\ContextMenuHandlers.
>
> I'm not sure what this Background key is for, but removing the
> Git-Cheetah entry from it got rid of the duplicate menu entries.
The background key is for shell extensions that appear in the context
menu of the background of a directory window (as opposed to the context
menu for a directory entry in the tree view). So having both context
menu handlers registered seems to be fine if you want to have entries
for both the tree view context menu and the list view background context
menu. TortoiseSVN is doing it the same way AFAICS.
Are you using some non-standard explorer / file manager by any chance
which might not handle the background context menu items correctly? Are
you having the same issue with TortoiseSVN (not TortoiseGit)?
--
Sebastian Schuberth
I guess it must have to do something in the library when it is loaded in
both places to avoid adding the menu twice?
> Are you using some non-standard explorer / file manager by any chance
> which might not handle the background context menu items correctly? Are
> you having the same issue with TortoiseSVN (not TortoiseGit)?
Nope, bog standard Windows 7 install. Not having the same issue with
TortoiseSVN ( though it does appear to be registered in both registry
keys as you said ).
It may be registry virtualization then. If you run the installer as
admin, it will write into HKEY_CLASSES_ROOT but if you run as a
non-admin user under some conditions it may place COM registrations in
a virtualized per-user section of the registry. So maybe you have
entries for this in both the admin HKCR\Directory and the user
HKEY_CURRENT_USER\SOFTWARE\Classes\Directory producing your replica
entries. Though I thought it was supposed to override - not add.
I do seem to have the non background entry under HKCU, though I'm not
sure how it got there as I am an admin and always choose to install
system wide.
I just uninstalled and verified that all git-cheetah keys were removed
from both HKCR and HKCU, then reinstalled, and now I have only the non
background entry under both, and no duplicate menu items. It seems that
Git-1.7.8-preview20111206 no longer adds the background entries, but
leaves them in place when upgrading.
>> It may be registry virtualization then. If you run the installer as
Good guess, Pat!
> I just uninstalled and verified that all git-cheetah keys were removed from
> both HKCR and HKCU, then reinstalled, and now I have only the non background
> entry under both, and no duplicate menu items. It seems that
> Git-1.7.8-preview20111206 no longer adds the background entries, but leaves
> them in place when upgrading.
That's odd. I just checked git-cheetah's dll.c code again, it seems to
always write both the non-background and background keys, and both
either to HKCR or HKCU.
--
Sebastian Schuberth
I spoke too soon. The duplicate entries showed up again today because
the Background registration reappeared for the Directory class ( in
HKCR ). I noted that git-cheetah is registered under Drive, Folder,
Directory, and * classes, but only the Directory class (and only in
HKCR) got the background registration.
Hello I'm also having this problem with duplicate menu entries when I right-click on a folder. Any advice is appreciated. I have