git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re-casing directories on case-insensitive systems
@ 2008-01-11 20:19 Kevin Ballard
  2008-01-11 21:09 ` Kevin Ballard
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Kevin Ballard @ 2008-01-11 20:19 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

Somehow I managed to change the case of a directory without git  
realizing it. I thought I issued `git mv CS4536 cs4536` but since that  
won't work in my efforts to reproduce the problem, I must have simply  
issued the `mv` outside of git and then re-added it.

Anyway, here's the state of my directory:

kevin@KBALLARD:~/Documents/School/C07> git ls-tree HEAD
040000 tree b47c8103e2e01fcf145bdc237c0e56ffc61f1c47	CS4536
040000 tree dbf7fc51ef3effebdf9b4e9172e4c86cae52b163	cs4536
040000 tree 15834a7b6534a285bf6930be4e5404b37e1dc718	ece3601
040000 tree 62d229b8c4a389b550df20a3752d666c48c767a4	ma2071

Note that I have both versions of the directory present.  
Unfortunately, only one of them can be present on the filesystem. If I  
run `mv cs4536 CS4536; git reset --hard` I end up with a different  
working tree.

Git should be able to detect this sort of conflict on a case- 
insensitive system. I didn't even realize what I'd done until I pushed  
back to the master repo and ran `git reset --hard` there, then  
wondered why the new file I added to cs4536/ was missing and why my  
directory was still named CS4536.

-Kevin Ballard

-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com



[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2432 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2008-01-12 19:29 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 20:19 Re-casing directories on case-insensitive systems Kevin Ballard
2008-01-11 21:09 ` Kevin Ballard
2008-01-11 21:19   ` Kevin Ballard
2008-01-11 21:25   ` Linus Torvalds
2008-01-11 21:59   ` Robin Rosenberg
2008-01-11 21:18 ` Linus Torvalds
2008-01-11 21:29 ` Johannes Schindelin
2008-01-11 21:44   ` Kevin Ballard
2008-01-11 22:05     ` Johannes Schindelin
2008-01-11 22:08     ` Linus Torvalds
2008-01-11 23:10       ` David Kastrup
2008-01-11 23:12         ` Kevin Ballard
2008-01-11 23:26       ` Robin Rosenberg
2008-01-12  0:03         ` Kevin Ballard
2008-01-12  0:15           ` Robin Rosenberg
2008-01-12  0:25             ` Kevin Ballard
2008-01-12  0:27               ` Junio C Hamano
2008-01-12  0:40                 ` Johannes Schindelin
2008-01-12  1:16                   ` Kevin Ballard
2008-01-12  1:30                     ` Junio C Hamano
2008-01-12  1:43                       ` Kevin Ballard
2008-01-12 12:07                         ` David Kastrup
2008-01-12 15:03                         ` Dmitry Potapov
2008-01-12  0:37         ` Junio C Hamano
2008-01-12  0:57           ` Robin Rosenberg
2008-01-12 16:33             ` Johannes Schindelin
2008-01-12 14:46       ` Dmitry Potapov
2008-01-12 18:47         ` Linus Torvalds
2008-01-12 19:29           ` Dmitry Potapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).