git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Files that want to delete themselves

From
Petr Baudis <pasky@suse.cz>
Date
Sep 24, 2008, 18:04 UTC
Message-ID
<20080924180436.GJ10544@machine.or.cz>
In-Reply-To
<19654453.post@talk.nabble.com>
  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.
Previous: Andrew VitNext: Andrew Vit
Message 2 of 4 in “Files that want to delete themselves”
  1. Andrew VitSep 24, 2008
  2. Petr BaudisSep 24, 2008
  3. Andrew VitSep 24, 2008
  4. Shawn O. PearceSep 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.