git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: System Environmental Variables being wiped on update

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 3, 2023, 15:10 UTC
Message-ID
<7aeccfbc-a6d1-8fc4-339f-562c53d1c133@gmx.de>
In-Reply-To
<AS2PR03MB919368C4FB4C7F94255D2CEA89869@AS2PR03MB9193.eurprd03.prod.outlook.com>
Hi Richard,
On Wed, 22 Mar 2023, Richard Spano wrote:
Show 6 quoted lines
> We have GIT installed on machine and we have “C:\Program
> Files\Git\usr\bin\” added to the PATH system variable (windows). When
> updating GIT this addition to the PATH variable is wiped. If this is not
> noticed then we have issues with GIT until we manually re-add this in.
>
> Is there a way to stop these variables being removed during a GIT update?

The Git for Windows-specific part of the `PATH` is considered to be "owned" by Git for Windows. This is required to allow for future changes similar to the ones when we moved Git for Windows from MSys to MSYS2, where the paths changed that needed to be added.

However, I have good news for you: if you _want_ `usr\bin` to be added to the `PATH`, you only need to select the 3rd option on the "Adjusting your PATH environment" page of the installer.

You might want to review the implications, though.

Ciao, Johannes

Previous: Richard Spano
Message 2 of 2 in “System Environmental Variables being wiped on update”
  1. Richard SpanoMar 22, 2023
  2. Johannes SchindelinApr 3, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.