Re: GIT does not support empty directories
This problem is in every Apache project... On Fri, Apr 16, 2010 at 3:10 PM, Chris Hostetter wrote: > > : I've run into this too. I don't think this needs to be documented, I > : think it needs to be *fixed* -- that is, the relevant ant tasks need to > : not assume these directories exist and create them if not. > > There is a reason these empty directories are commited and not created on > the fly by ant ... mainly because even if people don't ever use ant we > want "java -jar start.jar" to work. > > People have argued that the build scripts should recreate them if the user > forcably removes them (or if in this case: git is aparently not smart > enough to preserve them) but that leads to the possibility of a person > with an svn checkout manually deleting a directory, then the build file > recreating it for them, and then SVN freaking out because the directoyr > exists but doesn't have it's working copy info (ie: .svn subdir) > > "same as it ever was, same as it ever was" ... > > https://issues.apache.org/jira/browse/SOLR-765?focusedCommentId=12631870&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12631870 > > > > -Hoss > > -- Lance Norskog [email protected]
RE: GIT does not support empty directories
: I've run into this too. I don't think this needs to be documented, I : think it needs to be *fixed* -- that is, the relevant ant tasks need to : not assume these directories exist and create them if not. There is a reason these empty directories are commited and not created on the fly by ant ... mainly because even if people don't ever use ant we want "java -jar start.jar" to work. People have argued that the build scripts should recreate them if the user forcably removes them (or if in this case: git is aparently not smart enough to preserve them) but that leads to the possibility of a person with an svn checkout manually deleting a directory, then the build file recreating it for them, and then SVN freaking out because the directoyr exists but doesn't have it's working copy info (ie: .svn subdir) "same as it ever was, same as it ever was" ... https://issues.apache.org/jira/browse/SOLR-765?focusedCommentId=12631870&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12631870 -Hoss
Re: GIT does not support empty directories
That is where I learned the trick. On Fri, Apr 16, 2010 at 1:05 PM, Andrzej Bialecki wrote: > On 2010-04-16 21:33, Ted Dunning wrote: > > Put a readme file in the directory and be done with it. > > That's a trick I used with CVS 15 years ago ... these newfangled gizmos > aren't so smart after all ;)
Re: GIT does not support empty directories
On 2010-04-16 21:33, Ted Dunning wrote: > Put a readme file in the directory and be done with it. That's a trick I used with CVS 15 years ago ... these newfangled gizmos aren't so smart after all ;) -- Best regards, Andrzej Bialecki <>< ___. ___ ___ ___ _ _ __ [__ || __|__/|__||\/| Information Retrieval, Semantic Web ___|||__|| \| || | Embedded Unix, System Integration http://www.sigram.com Contact: info at sigram dot com
Re: GIT does not support empty directories
"This directory intentionally left empty." --wunder On Apr 16, 2010, at 12:33 PM, Ted Dunning wrote: > Put a readme file in the directory and be done with it. > > On Fri, Apr 16, 2010 at 8:40 AM, Robert Muir wrote: > >> I don't like the idea of complicating lucene/solr's build system any more >> than it already is, unless its absolutely necessary. its already too >> complicated. >> >> Instead of adding more hacks, what is actually broken (git) is what should >> be fixed, as the link states: >> >> Currently the design of the git index (staging area) only permits *files* >> to >> be listed, and nobody competent enough to make the change to allow empty >> directories has cared enough about this situation to remedy it. >> >> On Fri, Apr 16, 2010 at 11:14 AM, Smiley, David W. >> wrote: >> >>> Seriously. >>> I sympathize with your point that git should support empty directories. >>> But as a practical matter, it's easy to make the ant build tolerant of >>> them. >>> >>> ~ David Smiley >>> ________ >>> From: Robert Muir [[email protected]] >>> Sent: Friday, April 16, 2010 6:53 AM >>> To: [email protected] >>> Subject: Re: GIT does not support empty directories >>> >>> Seriously? We should hack our ant files around the bugs in every crappy >>> source control system that comes out? >>> >>> Fix Git. >>> >>> On Thu, Apr 15, 2010 at 10:55 PM, Smiley, David W. >>> wrote: >>> >>>> I've run into this too. I don't think this needs to be documented, I >>> think >>>> it needs to be *fixed* -- that is, the relevant ant tasks need to not >>> assume >>>> these directories exist and create them if not. >>>> >>>> ~ David Smiley >>>> >>>> -Original Message- >>>> From: Lance Norskog [mailto:[email protected]] >>>> Sent: Wednesday, April 14, 2010 11:14 PM >>>> To: solr-dev >>>> Subject: GIT does not support empty directories >>>> >>>> There are some empty directories in the Solr source tree, both in 1.4 >>>> and the trunk. >>>> >>>> example/work >>>> example/webapp >>>> example/logs >>>> >>>> Git does not support empty directories: >>>> >>>> >>> >> https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F >>>> >>>> And so, when you check out from the Apache GIT repository, these empty >>>> directories do not appear and 'ant example' and 'ant run-example' >>>> fail. There is no 'how to use the solr git stuff' wiki page; that >>>> seems like the right place to document this. I'm not git-smart enough >>>> to write that page. >>>> -- >>>> Lance Norskog >>>> [email protected] >>>> >>> >>> >>> >>> -- >>> Robert Muir >>> [email protected] >>> >> >> >> >> -- >> Robert Muir >> [email protected] >> -- Walter Underwood Venture ASM, Troop 14, Palo Alto
Re: GIT does not support empty directories
Put a readme file in the directory and be done with it. On Fri, Apr 16, 2010 at 8:40 AM, Robert Muir wrote: > I don't like the idea of complicating lucene/solr's build system any more > than it already is, unless its absolutely necessary. its already too > complicated. > > Instead of adding more hacks, what is actually broken (git) is what should > be fixed, as the link states: > > Currently the design of the git index (staging area) only permits *files* > to > be listed, and nobody competent enough to make the change to allow empty > directories has cared enough about this situation to remedy it. > > On Fri, Apr 16, 2010 at 11:14 AM, Smiley, David W. >wrote: > > > Seriously. > > I sympathize with your point that git should support empty directories. > > But as a practical matter, it's easy to make the ant build tolerant of > > them. > > > > ~ David Smiley > > > > From: Robert Muir [[email protected]] > > Sent: Friday, April 16, 2010 6:53 AM > > To: [email protected] > > Subject: Re: GIT does not support empty directories > > > > Seriously? We should hack our ant files around the bugs in every crappy > > source control system that comes out? > > > > Fix Git. > > > > On Thu, Apr 15, 2010 at 10:55 PM, Smiley, David W. > >wrote: > > > > > I've run into this too. I don't think this needs to be documented, I > > think > > > it needs to be *fixed* -- that is, the relevant ant tasks need to not > > assume > > > these directories exist and create them if not. > > > > > > ~ David Smiley > > > > > > -Original Message- > > > From: Lance Norskog [mailto:[email protected]] > > > Sent: Wednesday, April 14, 2010 11:14 PM > > > To: solr-dev > > > Subject: GIT does not support empty directories > > > > > > There are some empty directories in the Solr source tree, both in 1.4 > > > and the trunk. > > > > > > example/work > > > example/webapp > > > example/logs > > > > > > Git does not support empty directories: > > > > > > > > > https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F > > > > > > And so, when you check out from the Apache GIT repository, these empty > > > directories do not appear and 'ant example' and 'ant run-example' > > > fail. There is no 'how to use the solr git stuff' wiki page; that > > > seems like the right place to document this. I'm not git-smart enough > > > to write that page. > > > -- > > > Lance Norskog > > > [email protected] > > > > > > > > > > > -- > > Robert Muir > > [email protected] > > > > > > -- > Robert Muir > [email protected] >
Re: GIT does not support empty directories
I don't like the idea of complicating lucene/solr's build system any more than it already is, unless its absolutely necessary. its already too complicated. Instead of adding more hacks, what is actually broken (git) is what should be fixed, as the link states: Currently the design of the git index (staging area) only permits *files* to be listed, and nobody competent enough to make the change to allow empty directories has cared enough about this situation to remedy it. On Fri, Apr 16, 2010 at 11:14 AM, Smiley, David W. wrote: > Seriously. > I sympathize with your point that git should support empty directories. > But as a practical matter, it's easy to make the ant build tolerant of > them. > > ~ David Smiley > > From: Robert Muir [[email protected]] > Sent: Friday, April 16, 2010 6:53 AM > To: [email protected] > Subject: Re: GIT does not support empty directories > > Seriously? We should hack our ant files around the bugs in every crappy > source control system that comes out? > > Fix Git. > > On Thu, Apr 15, 2010 at 10:55 PM, Smiley, David W. >wrote: > > > I've run into this too. I don't think this needs to be documented, I > think > > it needs to be *fixed* -- that is, the relevant ant tasks need to not > assume > > these directories exist and create them if not. > > > > ~ David Smiley > > > > -Original Message- > > From: Lance Norskog [mailto:[email protected]] > > Sent: Wednesday, April 14, 2010 11:14 PM > > To: solr-dev > > Subject: GIT does not support empty directories > > > > There are some empty directories in the Solr source tree, both in 1.4 > > and the trunk. > > > > example/work > > example/webapp > > example/logs > > > > Git does not support empty directories: > > > > > https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F > > > > And so, when you check out from the Apache GIT repository, these empty > > directories do not appear and 'ant example' and 'ant run-example' > > fail. There is no 'how to use the solr git stuff' wiki page; that > > seems like the right place to document this. I'm not git-smart enough > > to write that page. > > -- > > Lance Norskog > > [email protected] > > > > > > -- > Robert Muir > [email protected] > -- Robert Muir [email protected]
RE: GIT does not support empty directories
Seriously. I sympathize with your point that git should support empty directories. But as a practical matter, it's easy to make the ant build tolerant of them. ~ David Smiley From: Robert Muir [[email protected]] Sent: Friday, April 16, 2010 6:53 AM To: [email protected] Subject: Re: GIT does not support empty directories Seriously? We should hack our ant files around the bugs in every crappy source control system that comes out? Fix Git. On Thu, Apr 15, 2010 at 10:55 PM, Smiley, David W. wrote: > I've run into this too. I don't think this needs to be documented, I think > it needs to be *fixed* -- that is, the relevant ant tasks need to not assume > these directories exist and create them if not. > > ~ David Smiley > > -Original Message- > From: Lance Norskog [mailto:[email protected]] > Sent: Wednesday, April 14, 2010 11:14 PM > To: solr-dev > Subject: GIT does not support empty directories > > There are some empty directories in the Solr source tree, both in 1.4 > and the trunk. > > example/work > example/webapp > example/logs > > Git does not support empty directories: > > https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F > > And so, when you check out from the Apache GIT repository, these empty > directories do not appear and 'ant example' and 'ant run-example' > fail. There is no 'how to use the solr git stuff' wiki page; that > seems like the right place to document this. I'm not git-smart enough > to write that page. > -- > Lance Norskog > [email protected] > -- Robert Muir [email protected]
Re: GIT does not support empty directories
Seriously? We should hack our ant files around the bugs in every crappy source control system that comes out? Fix Git. On Thu, Apr 15, 2010 at 10:55 PM, Smiley, David W. wrote: > I've run into this too. I don't think this needs to be documented, I think > it needs to be *fixed* -- that is, the relevant ant tasks need to not assume > these directories exist and create them if not. > > ~ David Smiley > > -Original Message- > From: Lance Norskog [mailto:[email protected]] > Sent: Wednesday, April 14, 2010 11:14 PM > To: solr-dev > Subject: GIT does not support empty directories > > There are some empty directories in the Solr source tree, both in 1.4 > and the trunk. > > example/work > example/webapp > example/logs > > Git does not support empty directories: > > https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F > > And so, when you check out from the Apache GIT repository, these empty > directories do not appear and 'ant example' and 'ant run-example' > fail. There is no 'how to use the solr git stuff' wiki page; that > seems like the right place to document this. I'm not git-smart enough > to write that page. > -- > Lance Norskog > [email protected] > -- Robert Muir [email protected]
RE: GIT does not support empty directories
I've run into this too. I don't think this needs to be documented, I think it needs to be *fixed* -- that is, the relevant ant tasks need to not assume these directories exist and create them if not. ~ David Smiley -Original Message- From: Lance Norskog [mailto:[email protected]] Sent: Wednesday, April 14, 2010 11:14 PM To: solr-dev Subject: GIT does not support empty directories There are some empty directories in the Solr source tree, both in 1.4 and the trunk. example/work example/webapp example/logs Git does not support empty directories: https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F And so, when you check out from the Apache GIT repository, these empty directories do not appear and 'ant example' and 'ant run-example' fail. There is no 'how to use the solr git stuff' wiki page; that seems like the right place to document this. I'm not git-smart enough to write that page. -- Lance Norskog [email protected]
