{"thread":{"id":"15655","subject":"Files that want to delete themselves","startedAt":"2008-09-24T17:55:02Z","lastAt":"2008-09-24T18:18:30Z","messageCount":4,"participants":["Andrew Vit","Petr Baudis","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"91501","messageId":"19654453.post@talk.nabble.com","threadId":"15655","inReplyTo":null,"subject":"Files that want to delete themselves","fromName":"Andrew Vit","fromEmail":"andrew@avit.ca","sentAt":"2008-09-24T17:55:02Z","receivedAt":"2008-09-24T17:55:02Z","isPatch":false,"sender":{"key":"andrew@avit.ca","avatar":null},"body":"\nHi,\n\nI have a Rails project that I'm managing with git and I have a strange\nproblem with one of the plugin directories. Every time I do `git add .` it\ntries to delete itself... Any idea what might be happening?\n\n\nandrew$ git status\n# On branch master\nnothing to commit (working directory clean)\n\nandrew$ git add .\n\nandrew$ git status\n# On branch master\n# Changes to be committed:\n#   (use \"git reset HEAD <file>...\" to unstage)\n#\n#\tnew file:   vendor/plugins/restful_authentication\n#\tdeleted:    vendor/plugins/restful_authentication/CHANGELOG\n#\tdeleted:    vendor/plugins/restful_authentication/README.textile\n#\tdeleted:    vendor/plugins/restful_authentication/Rakefile\n#\tdeleted:    vendor/plugins/restful_authentication/TODO\n# ...\n# ...\n# ...\n#\n\n-- \nView this message in context: http://www.nabble.com/Files-that-want-to-delete-themselves-tp19654453p19654453.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"91503","messageId":"20080924180436.GJ10544@machine.or.cz","threadId":"15655","inReplyTo":"19654453.post@talk.nabble.com","subject":"Re: Files that want to delete themselves","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2008-09-24T18:04:36Z","receivedAt":"2008-09-24T18:04:36Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"  Hi,\n\nOn Wed, Sep 24, 2008 at 10:55:02AM -0700, Andrew Vit wrote:\n> I have a Rails project that I'm managing with git and I have a strange\n> problem with one of the plugin directories. Every time I do `git add .` it\n> tries to delete itself... Any idea what might be happening?\n\n  so how does that look like in git diff? My guess is you have a .git/\nsubdirectory there and thus Git assumes that it is a submodule? I don't\nthink we actually have a way to specify that some directory should NOT\nbe considered a submodule even if it is a git checkout... So you will\nprobably either have to actually convert this to a submodule in your\nproject (probably the sanest thing to do), move the .git subdirectory\naway or submit a patch that will add say a .gitattributes flag not to\nconsider this subdirectory to be a submodule (which might make some\nsense).\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nPeople who take cold baths never have rheumatism,\nbut they have cold baths.\n"},{"id":"91504","messageId":"20080924180547.GA3669@spearce.org","threadId":"15655","inReplyTo":"19654453.post@talk.nabble.com","subject":"Re: Files that want to delete themselves","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-09-24T18:05:47Z","receivedAt":"2008-09-24T18:05:47Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Andrew Vit <andrew@avit.ca> wrote:\n> \n> I have a Rails project that I'm managing with git and I have a strange\n> problem with one of the plugin directories. Every time I do `git add .` it\n> tries to delete itself... Any idea what might be happening?\n> \n> andrew$ git status\n> # On branch master\n> # Changes to be committed:\n> #   (use \"git reset HEAD <file>...\" to unstage)\n> #\n> #\tnew file:   vendor/plugins/restful_authentication\n> #\tdeleted:    vendor/plugins/restful_authentication/CHANGELOG\n> #\tdeleted:    vendor/plugins/restful_authentication/README.textile\n> #\tdeleted:    vendor/plugins/restful_authentication/Rakefile\n> #\tdeleted:    vendor/plugins/restful_authentication/TODO\n\nAre you on a case-insensitive filesystem like HFS+?\n\nIs it possible that restful_authentication exists as a file in\nyour working directory, but as a directory in Git, but with a\ndifferent case?\n\nWhat does `git ls-tree HEAD:vendor/plugins` show you as the last\ncommitted contents of vendor/plugins?\n\nI'm a little stumped, but it sounds like the issues that have come\nup before due to a case-insensitive filesystem.\n\n-- \nShawn.\n"},{"id":"91507","messageId":"1222280310309-1116082.post@n2.nabble.com","threadId":"15655","inReplyTo":"20080924180436.GJ10544@machine.or.cz","subject":"Re: Files that want to delete themselves","fromName":"Andrew Vit","fromEmail":"andrew@avit.ca","sentAt":"2008-09-24T18:18:30Z","receivedAt":"2008-09-24T18:18:30Z","isPatch":false,"sender":{"key":"andrew@avit.ca","avatar":null},"body":"\n\nPetr Baudis wrote:\n> \n>   so how does that look like in git diff? My guess is you have a .git/\n> subdirectory there and thus Git assumes that it is a submodule?\n> \n\nYes, that did it! I was sure I deleted that .git directory in the plugin,\nI'm guessing it came back when I downloaded an updated one a while ago...\n\nDíky za dobrou radu!\n\n--Andrew Vit\n\n-- \nView this message in context: http://n2.nabble.com/Files-that-want-to-delete-themselves-tp1116033p1116082.html\nSent from the git mailing list archive at Nabble.com.\n"}]}