git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui
@ 2022-11-16 18:36 David Hary
  2022-11-17  1:24 ` brian m. carlson
  0 siblings, 1 reply; 3+ messages in thread
From: David Hary @ 2022-11-16 18:36 UTC (permalink / raw)
  To: git

: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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui
  2022-11-16 18:36 Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui David Hary
@ 2022-11-17  1:24 ` brian m. carlson
  2022-11-20 23:51   ` Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: brian m. carlson @ 2022-11-17  1:24 UTC (permalink / raw)
  To: David Hary; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui
  2022-11-17  1:24 ` brian m. carlson
@ 2022-11-20 23:51   ` Johannes Schindelin
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2022-11-20 23:51 UTC (permalink / raw)
  To: brian m. carlson; +Cc: David Hary, git

[-- Attachment #1: Type: text/plain, Size: 2274 bytes --]

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:

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-20 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 18:36 Issue: Git for Windows: : Incorrect registry entries for the Git Bash and Git Gui David Hary
2022-11-17  1:24 ` brian m. carlson
2022-11-20 23:51   ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).