threads / discuss / 58807

Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui

Subject: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui

## tl;dr

3 messages between Nov 16, 2022 and Nov 20, 2022.

replies: 2people: 3as markdown or json

David Hary· Nov 16, 2022, 18:36 UTC · lore
:Observation: Incorrect registry entries for the Git Bash and Git Gui
Likely Cause: the registry entries do not update when updating Git
How to reproduce:
1. install git as a personal level user; git goes to c:\apps
2. Change user level to admin;
3. Update git; git files move to c:\program files;
4. Try git bash or git gui from the File Explorer context menu; both fail.

How was this discovered: Having had some issues with android emulation for visual studio, I changed my user account from personal to admin. When updating, Git got installed under ‘c:\Program Files‘ instead of c:\apps. Yet, the command lines for Git Bash and Git Gui as recorded in the registry were still pointing to the c:\apps folder causing the explorer context menu shortcut to fail.

Workaround: edit the register changing ‘c:\apps’ to ‘c:\program files’
David

David Hary, PhD President Integrated Scientific Resources, Inc. +1(310)453-6809

brian m. carlson· Nov 17, 2022, 01:24 UTC · re: David Hary · lore

Re: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui

Hey,
On 2022-11-16 at 18:36:27, David Hary wrote:
Show 19 quoted lines
> :Observation: Incorrect registry entries for the Git Bash and Git Gui
> 
> Likely Cause: the registry entries do not update when updating Git
> 
> How to reproduce:
> 1. install git as a personal level user; git goes to c:\apps
> 2. Change user level to admin;
> 3. Update git; git files move to c:\program files;
> 4. Try git bash or git gui from the File Explorer context menu; both fail.
> 
> How was this discovered:
> Having had some issues with android emulation for visual studio, I
> changed my user account from personal to admin.  When updating, Git
> got installed under ‘c:\Program Files‘ instead of c:\apps. Yet, the
> command lines for Git Bash and Git Gui as recorded in the registry
> were still pointing to the c:\apps folder causing the explorer context
> menu shortcut to fail.
> 
> Workaround: edit the register changing ‘c:\apps’ to ‘c:\program files’

This list mostly discusses the portable upstream version of Git that works across systems. Any sort of custom Windows patches or Windows integration, such as interaction with the registry, should be reported to the Git for Windows project on their issue tracker:

https://github.com/git-for-windows/git

You might search first to see if someone has already reported this. In any event, as the folks providing this integration, they'd be the ones best suited to fix it.

Hope this helps.
-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Johannes Schindelin· Nov 20, 2022, 23:51 UTC · re: brian m. carlson · lore

Re: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui

Hi brian and David,

brian: thank you for redirecting the report to the Git for Windows project.

For lurkers: the report has migrated to https://github.com/git-for-windows/git/issues/4120 and we determined there that an "upgrade" from a user-wide installation to a system-wide is inherently subject to the observed issue, therefore users who want to switch from user-wide installations to system-wide ones need to first uninstall the former and cannot rely on the "upgrade" functionality where the Git for Windows installer detects an existing installation and tries to handle it properly.

Thanks, Johannes

On Thu, 17 Nov 2022, brian m. carlson wrote:
Show 39 quoted lines
> Hey,
>
> On 2022-11-16 at 18:36:27, David Hary wrote:
> > :Observation: Incorrect registry entries for the Git Bash and Git Gui
> >
> > Likely Cause: the registry entries do not update when updating Git
> >
> > How to reproduce:
> > 1. install git as a personal level user; git goes to c:\apps
> > 2. Change user level to admin;
> > 3. Update git; git files move to c:\program files;
> > 4. Try git bash or git gui from the File Explorer context menu; both fail.
> >
> > How was this discovered:
> > Having had some issues with android emulation for visual studio, I
> > changed my user account from personal to admin.  When updating, Git
> > got installed under ‘c:\Program Files‘ instead of c:\apps. Yet, the
> > command lines for Git Bash and Git Gui as recorded in the registry
> > were still pointing to the c:\apps folder causing the explorer context
> > menu shortcut to fail.
> >
> > Workaround: edit the register changing ‘c:\apps’ to ‘c:\program files’
>
> This list mostly discusses the portable upstream version of Git that
> works across systems.  Any sort of custom Windows patches or Windows
> integration, such as interaction with the registry, should be reported
> to the Git for Windows project on their issue tracker:
>
> https://github.com/git-for-windows/git
>
> You might search first to see if someone has already reported this.  In
> any event, as the folks providing this integration, they'd be the ones
> best suited to fix it.
>
> Hope this helps.
> --
> brian m. carlson (he/him or they/them)
> Toronto, Ontario, CA
>

← back to recent threads