* Cygwin error?
@ 2008-11-19 17:57 nadim khemir
2008-11-20 8:57 ` Andreas Ericsson
0 siblings, 1 reply; 2+ messages in thread
From: nadim khemir @ 2008-11-19 17:57 UTC (permalink / raw)
To: git
Hi, Given:
$ git pull
remote: Counting objects: 46, done.
...
Updating b80286d..a543dae
error: Untracked working tree file 'xxx.txt' would be overwritten by merge.
This is due to a rename of xxx.txt to Xxx.txt. I understand that this is due
to files being just case preserving on Cycwin/Win32.
The only I found was to remove the xxx.txt localy and do a pull. The
interresting thing is that Xxx.txt is no present in my file system. I can
check it out from HEAD though.
What did I missunderstood and do wrong?
Cheers, Nadim.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cygwin error?
2008-11-19 17:57 Cygwin error? nadim khemir
@ 2008-11-20 8:57 ` Andreas Ericsson
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Ericsson @ 2008-11-20 8:57 UTC (permalink / raw)
To: nadim khemir; +Cc: git
nadim khemir wrote:
> Hi, Given:
>
> $ git pull
> remote: Counting objects: 46, done.
> ...
> Updating b80286d..a543dae
> error: Untracked working tree file 'xxx.txt' would be overwritten by merge.
>
>
> This is due to a rename of xxx.txt to Xxx.txt. I understand that this is due
> to files being just case preserving on Cycwin/Win32.
>
> The only I found was to remove the xxx.txt localy and do a pull. The
> interresting thing is that Xxx.txt is no present in my file system. I can
> check it out from HEAD though.
>
> What did I missunderstood and do wrong?
>
You ran into a corner-case. Git expects the "Xxx.txt" and "xxx.txt" to be
different. Cross-OS projects should never, ever rename files so that they
end up with case ambiguity. Since they did, the only thing you can really
do is this:
git fetch
rm xxx.txt
git reset --hard origin/master; # or whatever branch you're interested in
I'm afraid you'll have problems with this until all the branches you're
interested in have this change.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-20 8:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 17:57 Cygwin error? nadim khemir
2008-11-20 8:57 ` Andreas Ericsson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.