From: Konstantin Khomoutov <kostix@bswap.ru>
To: git@vger.kernel.org
Subject: Re: GFW fails with ST3 on Windows 11
Date: Fri, 27 Oct 2023 15:29:57 +0300 [thread overview]
Message-ID: <20231027122957.6mb6vyrqhnlwit6q@carbon> (raw)
In-Reply-To: <cd248c66-fc71-4783-9195-02c8811744b8@app.fastmail.com>
On Fri, Oct 27, 2023 at 02:31:32PM +0700, John wrote:
> 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
next prev parent reply other threads:[~2023-10-27 12:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-27 7:31 GFW fails with ST3 on Windows 11 John
2023-10-27 9:25 ` brian m. carlson
[not found] ` <e1de1948-8604-4c8f-961b-d214efa4ed84@app.fastmail.com>
2023-10-27 11:24 ` brian m. carlson
2023-10-27 12:29 ` Konstantin Khomoutov [this message]
2023-10-27 12:37 ` Konstantin Khomoutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231027122957.6mb6vyrqhnlwit6q@carbon \
--to=kostix@bswap.ru \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox