Special characters in user path causing problems

129 views
Skip to first unread message

Gregor Tušar

unread,
Oct 10, 2024, 7:48:00 PM10/10/24
to git-for-windows
Hi,
on my work computer I log in to Windows with external login provider (Okta). My user profile was created automatically so my user profile folder contains letter Š (C:\Users\GregorTušar\). Unfortunatelly I cannot rename this folder.
It looks like this is causing trouble with some git operations. Is there someone who had this issue and solved it? 
If I do the same operation with Git Bash (Mingw64) the operation succeeds. Also pulling with Visual Studio works, so my SSH keys are set up correctly. 
Screenshot 2024-10-07 085030.png

Konstantin Khomoutov

unread,
Oct 11, 2024, 5:09:55 AM10/11/24
to Gregor Tušar, git-for-windows
On Sun, Oct 06, 2024 at 11:52:00PM -0700, 'Gregor Tušar' via git-for-windows wrote:

> on my work computer I log in to Windows with external login provider
> (Okta). My user profile was created automatically so my user profile folder
> contains letter Š (C:\Users\GregorTušar\). Unfortunatelly I cannot rename
> this folder.
> It looks like this is causing trouble with some git operations. Is there
> someone who had this issue and solved it?

This definitely looks like a bug (supposedly in the so-called SSH agent,
but it does not matter much). I think you should check the projects bug
tracker [1] and file a bug if it was not done yet.

> If I do the same operation with Git Bash (Mingw64) the operation succeeds.
> Also pulling with Visual Studio works, so my SSH keys are set up correctly.

In the meantime, if you want it to work in "native" shells (that is, those
other than Git Bash), you can use plink.exe from PuTTY [2] as your SSH
agent - for instance, as detailed toward the end of this post [3].

("The trick" is than what gets called when you do `git pull` or the like
in a native console, is some Unix program ported to Windows; ostensibly, it
has certain problems with handling non-ASCII-clean pathnames on Windows.
Conversely, PuTTY is a Windows-native suite written from scratch, so it has
no such compatibility problems by design.)

1. https://github.com/git-for-windows/git/issues/
2. https://www.chiark.greenend.org.uk/~sgtatham/putty/
3. https://groups.google.com/g/git-for-windows/c/rE6-4iuWV_g/m/eNrDZlcPAAAJ

Konstantin Khomoutov

unread,
Oct 11, 2024, 5:44:26 AM10/11/24
to Gregor Tušar, git-for-windows
On Fri, Oct 11, 2024 at 12:09:48PM +0300, Konstantin Khomoutov wrote:

[...]

>> If I do the same operation with Git Bash (Mingw64) the operation succeeds.
>> Also pulling with Visual Studio works, so my SSH keys are set up correctly.
>
> In the meantime, if you want it to work in "native" shells (that is, those
> other than Git Bash), you can use plink.exe from PuTTY [2] as your SSH
> agent - for instance, as detailed toward the end of this post [3].

I've messed up terminology a little bit: plink.exe of PuTTY is the SSH client
(the program which connects to a server and establishes an SSH tunnel which
is used by Git to carry out its data exchange), and PuTTY's SSH agent is
called pageant.exe. Sorry for confusion.

Reply all
Reply to author
Forward
0 new messages