{"thread":{"id":"58807","subject":"Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui","startedAt":"2022-11-16T18:36:42Z","lastAt":"2022-11-20T23:51:42Z","messageCount":3,"participants":["David Hary","brian m. carlson","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"467377","messageId":"CANNdkQZByT6dAiAJ=yrQshBi9suDUV2Xum2TtAGyJDKxb3f5QQ@mail.gmail.com","threadId":"58807","inReplyTo":null,"subject":"Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui","fromName":"David Hary","fromEmail":"davidhary@gmail.com","sentAt":"2022-11-16T18:36:27Z","receivedAt":"2022-11-16T18:36:42Z","isPatch":false,"sender":{"key":"davidhary@gmail.com","avatar":null},"body":":Observation: Incorrect registry entries for the Git Bash and Git Gui\n\nLikely Cause: the registry entries do not update when updating Git\n\nHow to reproduce:\n1. install git as a personal level user; git goes to c:\\apps\n2. Change user level to admin;\n3. Update git; git files move to c:\\program files;\n4. Try git bash or git gui from the File Explorer context menu; both fail.\n\nHow was this discovered:\nHaving had some issues with android emulation for visual studio, I\nchanged my user account from personal to admin.  When updating, Git\ngot installed under ‘c:\\Program Files‘ instead of c:\\apps. Yet, the\ncommand lines for Git Bash and Git Gui as recorded in the registry\nwere still pointing to the c:\\apps folder causing the explorer context\nmenu shortcut to fail.\n\nWorkaround: edit the register changing ‘c:\\apps’ to ‘c:\\program files’\n\nDavid\n\nDavid Hary, PhD\nPresident\nIntegrated Scientific Resources, Inc.\n+1(310)453-6809\n"},{"id":"467410","messageId":"Y3WNYNjos+2996jb@tapette.crustytoothpaste.net","threadId":"58807","inReplyTo":"CANNdkQZByT6dAiAJ=yrQshBi9suDUV2Xum2TtAGyJDKxb3f5QQ@mail.gmail.com","subject":"Re: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2022-11-17T01:24:48Z","receivedAt":"2022-11-17T01:24:56Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"Hey,\n\nOn 2022-11-16 at 18:36:27, David Hary wrote:\n> :Observation: Incorrect registry entries for the Git Bash and Git Gui\n> \n> Likely Cause: the registry entries do not update when updating Git\n> \n> How to reproduce:\n> 1. install git as a personal level user; git goes to c:\\apps\n> 2. Change user level to admin;\n> 3. Update git; git files move to c:\\program files;\n> 4. Try git bash or git gui from the File Explorer context menu; both fail.\n> \n> How was this discovered:\n> Having had some issues with android emulation for visual studio, I\n> changed my user account from personal to admin.  When updating, Git\n> got installed under ‘c:\\Program Files‘ instead of c:\\apps. Yet, the\n> command lines for Git Bash and Git Gui as recorded in the registry\n> were still pointing to the c:\\apps folder causing the explorer context\n> menu shortcut to fail.\n> \n> Workaround: edit the register changing ‘c:\\apps’ to ‘c:\\program files’\n\nThis list mostly discusses the portable upstream version of Git that\nworks across systems.  Any sort of custom Windows patches or Windows\nintegration, such as interaction with the registry, should be reported\nto the Git for Windows project on their issue tracker:\n\nhttps://github.com/git-for-windows/git\n\nYou might search first to see if someone has already reported this.  In\nany event, as the folks providing this integration, they'd be the ones\nbest suited to fix it.\n\nHope this helps.\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"},{"id":"467633","messageId":"s731n00o-2o6s-nq66-sqqq-n42qo6o4rs7n@tzk.qr","threadId":"58807","inReplyTo":"Y3WNYNjos+2996jb@tapette.crustytoothpaste.net","subject":"Re: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2022-11-20T23:51:25Z","receivedAt":"2022-11-20T23:51:42Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi brian and David,\n\nbrian: thank you for redirecting the report to the Git for Windows\nproject.\n\nFor lurkers: the report has migrated to\nhttps://github.com/git-for-windows/git/issues/4120 and we determined there\nthat an \"upgrade\" from a user-wide installation to a system-wide is\ninherently subject to the observed issue, therefore users who want to\nswitch from user-wide installations to system-wide ones need to first\nuninstall the former and cannot rely on the \"upgrade\" functionality where\nthe Git for Windows installer detects an existing installation and tries\nto handle it properly.\n\nThanks,\nJohannes\n\nOn Thu, 17 Nov 2022, brian m. carlson wrote:\n\n> Hey,\n>\n> On 2022-11-16 at 18:36:27, David Hary wrote:\n> > :Observation: Incorrect registry entries for the Git Bash and Git Gui\n> >\n> > Likely Cause: the registry entries do not update when updating Git\n> >\n> > How to reproduce:\n> > 1. install git as a personal level user; git goes to c:\\apps\n> > 2. Change user level to admin;\n> > 3. Update git; git files move to c:\\program files;\n> > 4. Try git bash or git gui from the File Explorer context menu; both fail.\n> >\n> > How was this discovered:\n> > Having had some issues with android emulation for visual studio, I\n> > changed my user account from personal to admin.  When updating, Git\n> > got installed under ‘c:\\Program Files‘ instead of c:\\apps. Yet, the\n> > command lines for Git Bash and Git Gui as recorded in the registry\n> > were still pointing to the c:\\apps folder causing the explorer context\n> > menu shortcut to fail.\n> >\n> > Workaround: edit the register changing ‘c:\\apps’ to ‘c:\\program files’\n>\n> This list mostly discusses the portable upstream version of Git that\n> works across systems.  Any sort of custom Windows patches or Windows\n> integration, such as interaction with the registry, should be reported\n> to the Git for Windows project on their issue tracker:\n>\n> https://github.com/git-for-windows/git\n>\n> You might search first to see if someone has already reported this.  In\n> any event, as the folks providing this integration, they'd be the ones\n> best suited to fix it.\n>\n> Hope this helps.\n> --\n> brian m. carlson (he/him or they/them)\n> Toronto, Ontario, CA\n>\n"}]}