* Files that want to delete themselves
@ 2008-09-24 17:55 Andrew Vit
2008-09-24 18:04 ` Petr Baudis
2008-09-24 18:05 ` Shawn O. Pearce
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Vit @ 2008-09-24 17:55 UTC (permalink / raw)
To: git
Hi,
I have a Rails project that I'm managing with git and I have a strange
problem with one of the plugin directories. Every time I do `git add .` it
tries to delete itself... Any idea what might be happening?
andrew$ git status
# On branch master
nothing to commit (working directory clean)
andrew$ git add .
andrew$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: vendor/plugins/restful_authentication
# deleted: vendor/plugins/restful_authentication/CHANGELOG
# deleted: vendor/plugins/restful_authentication/README.textile
# deleted: vendor/plugins/restful_authentication/Rakefile
# deleted: vendor/plugins/restful_authentication/TODO
# ...
# ...
# ...
#
--
View this message in context: http://www.nabble.com/Files-that-want-to-delete-themselves-tp19654453p19654453.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Files that want to delete themselves
2008-09-24 17:55 Files that want to delete themselves Andrew Vit
@ 2008-09-24 18:04 ` Petr Baudis
2008-09-24 18:18 ` Andrew Vit
2008-09-24 18:05 ` Shawn O. Pearce
1 sibling, 1 reply; 4+ messages in thread
From: Petr Baudis @ 2008-09-24 18:04 UTC (permalink / raw)
To: Andrew Vit; +Cc: git
Hi,
On Wed, Sep 24, 2008 at 10:55:02AM -0700, Andrew Vit wrote:
> I have a Rails project that I'm managing with git and I have a strange
> problem with one of the plugin directories. Every time I do `git add .` it
> tries to delete itself... Any idea what might be happening?
so how does that look like in git diff? My guess is you have a .git/
subdirectory there and thus Git assumes that it is a submodule? I don't
think we actually have a way to specify that some directory should NOT
be considered a submodule even if it is a git checkout... So you will
probably either have to actually convert this to a submodule in your
project (probably the sanest thing to do), move the .git subdirectory
away or submit a patch that will add say a .gitattributes flag not to
consider this subdirectory to be a submodule (which might make some
sense).
--
Petr "Pasky" Baudis
People who take cold baths never have rheumatism,
but they have cold baths.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Files that want to delete themselves
2008-09-24 17:55 Files that want to delete themselves Andrew Vit
2008-09-24 18:04 ` Petr Baudis
@ 2008-09-24 18:05 ` Shawn O. Pearce
1 sibling, 0 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2008-09-24 18:05 UTC (permalink / raw)
To: Andrew Vit; +Cc: git
Andrew Vit <andrew@avit.ca> wrote:
>
> I have a Rails project that I'm managing with git and I have a strange
> problem with one of the plugin directories. Every time I do `git add .` it
> tries to delete itself... Any idea what might be happening?
>
> andrew$ git status
> # On branch master
> # Changes to be committed:
> # (use "git reset HEAD <file>..." to unstage)
> #
> # new file: vendor/plugins/restful_authentication
> # deleted: vendor/plugins/restful_authentication/CHANGELOG
> # deleted: vendor/plugins/restful_authentication/README.textile
> # deleted: vendor/plugins/restful_authentication/Rakefile
> # deleted: vendor/plugins/restful_authentication/TODO
Are you on a case-insensitive filesystem like HFS+?
Is it possible that restful_authentication exists as a file in
your working directory, but as a directory in Git, but with a
different case?
What does `git ls-tree HEAD:vendor/plugins` show you as the last
committed contents of vendor/plugins?
I'm a little stumped, but it sounds like the issues that have come
up before due to a case-insensitive filesystem.
--
Shawn.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-24 18:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-24 17:55 Files that want to delete themselves Andrew Vit
2008-09-24 18:04 ` Petr Baudis
2008-09-24 18:18 ` Andrew Vit
2008-09-24 18:05 ` Shawn O. Pearce
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).