From: Andreas Ericsson <ae@op5.se>
To: nadim khemir <nadim@khemir.net>
Cc: git@vger.kernel.org
Subject: Re: Cygwin error?
Date: Thu, 20 Nov 2008 09:57:13 +0100 [thread overview]
Message-ID: <49252669.7060304@op5.se> (raw)
In-Reply-To: <200811191857.30793.nadim@khemir.net>
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
prev parent reply other threads:[~2008-11-20 8:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 17:57 Cygwin error? nadim khemir
2008-11-20 8:57 ` Andreas Ericsson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49252669.7060304@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=nadim@khemir.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox