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

Re: git and cyrillic branches

From
Кксовиран <xowirun@yandex.ru>
Date
Jul 25, 2013, 14:51 UTC
Message-ID
<322491374763917@web5g.yandex.ru>
In-Reply-To
<20130725182851.c17d3ed662434d1d91838949@domain007.com>
25.07.2013, 18:28, "Konstantin Khomoutov" <kostix+git@007spb.ru>:
Show 41 quoted lines
> On Thu, 25 Jul 2013 17:06:41 +0400
> ксовиран <xowirun@yandex.ru> 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.
>>>  Works for me across two Debian systems: both have Git 1.7.10.4; user
>>>  accounts on both systems have LANG=en_US.UTF-8 configured in their
>>>  environment.
>>>
>>>  Do both of your systems (local and remote) have an UTF-8-enabled (or
>>>  encoding-agnostic, like "C") locale active?
>>  oh, yes indeed. i was pushing from mac to ubuntu, but ubuntu to
>>  ubuntu works fine. although #locale gives almost identical output, so
>>  it is something to work out. спасибо за помощь! 25.07.2013, 16:45,
>
> I'm afraid, this might be not that simple: Git received certain tweaks
> to work around certain problems Mac OS X has (as I understand it) with
> handling UTF-8 on various filesystems it supports; in particular, see
> commits 76759c7dff53e8c84e975b88cb8245587c14c7ba [1]
> and b856ad623e4f686815986c0b9341dd1bfd791e71 [2] which were released as
> part of v1.7.12.
>
> So... I'm not sure, but I beleive these fixes might have been related to
> handling filenames in the work tree and the index only, not branches, as
> having branches with non-ASCII names is a weird idea to most
> developers, I think.  So the question is: do you have Git >= 1.7.12 on
> your Mac OS X machine?  If so, do you still experience this problem (I
> think that Macs do not have non-UTF-8 locales anyway, so this is
> unlikely the root cause).
>
> P.S.
> Please don't top-post as this breaks discussion flow and hence sucks.
>
> 1. https://github.com/git/git/commit/76759c7
> 2. https://github.com/git/git/commit/b856ad6

there is nothing wrong with having branches with non-ASCII names as english is not the only language in the world. problem is still here, i've got ubuntu on VM and same shared git-folder causes this problem on Mac Os and no problems on Ubuntu. git version on Mac is 1.8.0.1 (on Ubuntu is 1.7.10.4)

Previous: Konstantin KhomoutovNext: Martin Langhoff
Message 6 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.