3

In my git repository I can do git status and it tells me that everything is up to date:

[598] : git status
# On branch master
nothing to commit (working directory clean)

If I connect to the repository with EGit and do a synchronize in Eclipse I get:

enter image description here

Somehow EGit thinks that a lot of files have been removed and readded witht the same name. Since git status returns nothing to commit I expect to get an empty window here.

For completeness: This is on OSX 10.7 but I've seen the same problem on Window 7 Pro as well.

Any ideas what's going on here?

BetaRide
  • 16,207
  • 29
  • 99
  • 177

1 Answers1

3

You are using non 7-bit character here (the umlaut o). Sorry, this is known to cause trouble.

You have to recode the tree for utf8 filename. Even if you do this, this is not bug free.

See this question for git part, and this bug for egit part.

Community
  • 1
  • 1
J-16 SDiZ
  • 26,473
  • 4
  • 65
  • 84
  • Isn't Java unicode-aware by default? How weird would the code have to be to break that? – Mahmoud Al-Qudsi May 04 '12 at 07:48
  • @MahmoudAl-Qudsi It's the c git compatibility problem. The c git never save the file name as "string", it is just an array of bytes. This is how OS-level file operation works in unix. Java, however, use string for file name. – J-16 SDiZ May 04 '12 at 09:32
  • @BetaRide did you read the answer in the linked question? It have two link to your answer. – J-16 SDiZ May 04 '12 at 13:53
  • Yes I read the the linked question. They deal with the windows git client. The mentioned new options deal with the enconding of the commit comments and wrong path output. As for as I understand none of this is relevant here. I think the osx git client is working fine, but EGit (based on JGit) has a problem with special characters. – BetaRide May 05 '12 at 15:33
  • you have to recode it to make it compatible with egit. It is a delusional that your current repository works -- it will break as soon as you try another locale (lets say, a russion version of windows, korean version of linux, etc...). – J-16 SDiZ May 06 '12 at 15:42