Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

msysgit profile folder with unicode on windows 7

I have msysgit installed on windows 7, my profile folder contains unicode characters and looks like C:\Users\Андрей

I cannot get ssh working, have this message:

>ssh -T [email protected]
Could not create directory '/c/Users/\200\255\244\340\245\251/.ssh'.

.git/gitconfig have this string:

[core]
    quotepath = false

[i18n]
        commitencoding = cp1251
        logoutputencoding = cp1251

This as I see doesn't affect path. Then I patched $HOME in Git/etc/profile: export HOME="/d/Dropbox/My\ Documents/" But it doesn't change anything. I still get Could not create directory for ssh.

It works for ssh with set HOME=/d/Dropbox/My Documents from command line.

But it is only works for ssh -T [email protected] not git push.

like image 301
amrok Avatar asked Apr 05 '26 17:04

amrok


1 Answers

I had a similar though somewhat unrelated problem with unicode characters but this may help you. You may need to set the codepage of your environment. You can try using the chcp command to change the windows console codepage:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/chcp.mspx?mfr=true

like image 124
Chris Nicola Avatar answered Apr 08 '26 05:04

Chris Nicola



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!