Re: empty directories
- From
- Yakov Lerner <iler.ml@gmail.com>
- Date
- Apr 23, 2007, 16:49 UTC
- Message-ID
- <f36b08ee0704230949n5dee717bu2f4107555f4300b@mail.gmail.com>
- In-Reply-To
- <81b0412b0704230919h3be7a67fqec431a6afb6e3760@mail.gmail.com>
On 4/23/07, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 20 quoted lines
> On 4/23/07, Yakov Lerner <iler.ml@gmail.com> wrote: > > When I git-add empty directory (mkdir d1;git-add d1), > > git refuses to add it [1]. > > > > I was told on #git chan that git cannot store empty dirs. > > It can, just refuses to. Which considered good by most > > > But when I do > > git-add -f emptyDir # where emptyDir is empty dir > > , emptyDir is added and then cloned. What does it mean ? > > $ git add -f emptyDir > fatal: unable to index file emptyDir > > > Does it mean that if i git-add emptyDir with -f, it may break > > something in the repo ? That I shall not try it ? Or it is ok ? > > It is not ok and it does not break anything. What git do you > have, as I apparently cannot reproduce it.
It was 1.5.1. In 1.5.1.2, it refuses to add, yes. The message is: fatal: emptyDir/../emptyDir: can only add regular files or symbolic links
Yakov