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

Re: git and cyrillic branches

From
Torsten Bögershausen <tboegi@web.de>
Date
Jul 26, 2013, 01:50 UTC
Message-ID
<51F1D5F7.5060101@web.de>
In-Reply-To
<922031374754788@web29h.yandex.ru>
On 2013-07-25 14.19, иванов иван wrote:
> hello! there is problem vith git and cyrillic (utf-8) names of branches. branch creates perfectly, but when i clone this remote branch to local host, there are 2 bugs:
> 1) "git branch" doesnt show checked branch with asterisk (while on remote server it does)
> 2) "git push" gives 2 errors: "fatal: BRANCH_NAME cannot be resolved to branch." and "fatal: The remote end hung up unexpectedly"
> thanks.

It could be helpful if you could provide more information. The best could be a step-by-step instruction using a some "mini repo", so that we we can reproduce the problem. I have done an illustrating example using UTF-8, (not cyrillic, I don't have these letters on my keyboard ;-)

tb@linux:~$ mkdir cyrill
tb@linux:~$ cd cyrill/
tb@linux:~/cyrill$ git init
Initialized empty Git repository in /home/tb/cyrill/.git/
tb@linux:~/cyrill$ echo File>File
tb@linux:~/cyrill$ git checkout -b bränch
Switched to a new branch 'bränch'
tb@linux:~/cyrill$ git add File
tb@linux:~/cyrill$ git commit -m "Add File"
[bränch (root-commit) e39d84e] Add File
 1 file changed, 1 insertion(+)
 create mode 100644 "File"
tb@linux:~/cyrill$ git branch
* bränch
tb@linux:~/cyrill$ 
tb@macos:~> git clone tb@linux:~/cyrill
Cloning into 'cyrill'...
tb@linux's password: 
remote: Counting objects: 3, done.
Receiving objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
tb@macos:~> cd cyrill/
tb@macos:~/cyrill> git branch
* bränch
tb@macos:~/cyrill> ls -l
total 8
-rw-r--r--  1 tb  staff  6 Jul 26 03:39 File
tb@macos:~/cyrill> 

=================== Other question: what does (on Mac OS) git config core.precomposeunicode give you? /Torsten

Previous: Konstantin KhomoutovNext: ксовиран
Message 3 of 9 in “git and cyrillic branches”
  1. иванов иванJul 25, 2013
  2. Konstantin KhomoutovJul 25, 2013
  3. Torsten BögershausenJul 26, 2013
  4. ксовиранJul 26, 2013
  5. Konstantin KhomoutovJul 25, 2013
  6. ксовиранJul 25, 2013
  7. Martin LanghoffJul 25, 2013
  8. Konstantin KhomoutovJul 25, 2013
  9. Konstantin KhomoutovJul 25, 2013

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.