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

Re: GFW fails with ST3 on Windows 11

From
KKKonstantin Khomoutov <kostix@bswap.ru>
Date
Oct 27, 2023, 12:29 UTC
Message-ID
<20231027122957.6mb6vyrqhnlwit6q@carbon>
In-Reply-To
<cd248c66-fc71-4783-9195-02c8811744b8@app.fastmail.com>
On Fri, Oct 27, 2023 at 02:31:32PM +0700, John wrote:
Show 11 quoted lines
> I have been using Sublime Text 3 as the editor on Git for Windows for years,
> on Windows 10. I recently purchased a Windows 11 machine. On that machine,
> when I give GFW the following command, I get the response shown:
> 
> $ git commit -a
> […]
> hint: Waiting for your editor to close the file… C:\Program Files\Sublime Text 3\sublime_text.exe: C:Program: command not found
> error: There was a problem with the editor ‘C:\Program Files\Sublime Text 3\sublime_text.exe’.
> Please supply the message using either -m or -F option.
> 
> Does anyone know of a fix? To repeat, it’s only a problem on Windows 11.

What if you change the contents of the GIT_EDITOR (or EDITOR - whichever is set) environment variable to contain forward slashes? That is, for the pathname to read "C:/Program Files/..."?

If that does not work, what if you replace "C:/" with "/c/" - that is, for the pathname to read "/c/Program files/..."?

Please note that depending on where this variable is set (in the "System" block of setting or "User") you might need to reboot or relogin, correspondingly in order for the setting to be applied to your environment.

Also please check the core.editor configuration setting - it might be set, and then you should try to modify it instead [3].

While we're at it, such issues are better discussed on the dedicated mailing list for GfW [1]. Also check the project's issue tracker [2].

 1. https://groups.google.com/g/git-for-windows/
 2. https://github.com/git-for-windows/git/issues/
 3. https://github.com/git-for-windows/git/issues/782
Previous: brian m. carlsonNext: Konstantin Khomoutov
Message 3 of 5 in “GFW fails with ST3 on Windows 11”
  1. JohnOct 27, 2023
  2. brian m. carlsonOct 27, 2023
  3. Konstantin KhomoutovOct 27, 2023
  4. Konstantin KhomoutovOct 27, 2023
  5. brian m. carlsonOct 27, 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.