{"thread":{"id":"7797","subject":"empty directories","startedAt":"2007-04-23T15:40:10Z","lastAt":"2007-04-23T16:49:15Z","messageCount":3,"participants":["Yakov Lerner","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"40206","messageId":"f36b08ee0704230840xa37e149qffa15c5c685524c4@mail.gmail.com","threadId":"7797","inReplyTo":null,"subject":"empty directories","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2007-04-23T15:40:10Z","receivedAt":"2007-04-23T15:40:10Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"When I git-add empty directory (mkdir d1;git-add d1),\ngit refuses to add it [1].\n\nI was told on #git chan that git cannot store empty dirs.\nBut when I do\n         git-add -f emptyDir # where emptyDir is empty dir\n, emptyDir is added and then cloned. What does it mean ?\n\nDoes it mean that if i git-add emptyDir with -f, it may break\nsomething in the repo ? That I shall not try it ? Or it is ok ?\n\nThanks\nYakov\n.....................................................................\n[1] $ mkdir emptyDir\n$ git-add emptyDir\nThe following paths are ignored by one of your .gitignore files:\nemptyDir (directory)\nUse -f if you really want to add them.\n$\nNote that the printed warning is misleading.\nThe name (emptyDir) is not in any .gitignore files.\nIt would be better to print the real reason for ignoring, no ?\n"},{"id":"40208","messageId":"81b0412b0704230919h3be7a67fqec431a6afb6e3760@mail.gmail.com","threadId":"7797","inReplyTo":"f36b08ee0704230840xa37e149qffa15c5c685524c4@mail.gmail.com","subject":"Re: empty directories","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-04-23T16:19:46Z","receivedAt":"2007-04-23T16:19:46Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"On 4/23/07, Yakov Lerner <iler.ml@gmail.com> wrote:\n> When I git-add empty directory (mkdir d1;git-add d1),\n> git refuses to add it [1].\n>\n> I was told on #git chan that git cannot store empty dirs.\n\nIt can, just refuses to. Which considered good by most\n\n> But when I do\n>          git-add -f emptyDir # where emptyDir is empty dir\n> , emptyDir is added and then cloned. What does it mean ?\n\n$ git add -f emptyDir\nfatal: unable to index file emptyDir\n\n> Does it mean that if i git-add emptyDir with -f, it may break\n> something in the repo ? That I shall not try it ? Or it is ok ?\n\nIt is not ok and it does not break anything. What git do you\nhave, as I apparently cannot reproduce it.\n"},{"id":"40210","messageId":"f36b08ee0704230949n5dee717bu2f4107555f4300b@mail.gmail.com","threadId":"7797","inReplyTo":"81b0412b0704230919h3be7a67fqec431a6afb6e3760@mail.gmail.com","subject":"Re: empty directories","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2007-04-23T16:49:15Z","receivedAt":"2007-04-23T16:49:15Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"On 4/23/07, Alex Riesen <raa.lkml@gmail.com> wrote:\n> On 4/23/07, Yakov Lerner <iler.ml@gmail.com> wrote:\n> > When I git-add empty directory (mkdir d1;git-add d1),\n> > git refuses to add it [1].\n> >\n> > I was told on #git chan that git cannot store empty dirs.\n>\n> It can, just refuses to. Which considered good by most\n>\n> > But when I do\n> >          git-add -f emptyDir # where emptyDir is empty dir\n> > , emptyDir is added and then cloned. What does it mean ?\n>\n> $ git add -f emptyDir\n> fatal: unable to index file emptyDir\n>\n> > Does it mean that if i git-add emptyDir with -f, it may break\n> > something in the repo ? That I shall not try it ? Or it is ok ?\n>\n> It is not ok and it does not break anything. What git do you\n> have, as I apparently cannot reproduce it.\n\nIt was 1.5.1.\nIn 1.5.1.2, it refuses to add, yes.\nThe message is:\nfatal: emptyDir/../emptyDir: can only add regular files or symbolic links\n\nYakov\n"}]}