{"thread":{"id":"6195","subject":"1.5.0.rc0.gf4bf2: \"git --bare gc\" in bare repo deletes all!","startedAt":"2007-01-02T15:17:13Z","lastAt":"2007-01-02T15:17:13Z","messageCount":1,"participants":["Horst H. von Brand"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"30672","messageId":"200701021517.l02FHDxr009615@laptop13.inf.utfsm.cl","threadId":"6195","inReplyTo":null,"subject":"1.5.0.rc0.gf4bf2: \"git --bare gc\" in bare repo deletes all!","fromName":"Horst H. von Brand","fromEmail":"vonbrand@inf.utfsm.cl","sentAt":"2007-01-02T15:17:13Z","receivedAt":"2007-01-02T15:17:13Z","isPatch":false,"sender":{"key":"vonbrand@inf.utfsm.cl","avatar":"https://avatars.githubusercontent.com/u/211384?v=4"},"body":"I did:\n\n  mkdir M\n  cd M\n  git --bare init-db\n  git --bare fetch git+ssh://localhost/SomeRepo\n\nThis got the (correct) 21 (loose) objects. OK, cleanup:\n\n  git --bare gc\n\nthis gives:\n\n  Generating pack...\n  Done counting 0 objects.\n  Nothing new to pack.\n\nand the objects are gone, no pack there.\n\nSame thing happens with plain \"git gc\". Not very nice...\n\n\nBesides, you can \"git --bare pull ...\", and get a mishmash of repo +\nchecked out files, this should be forbidden. Also, \"git status\" reports a\nbunch of repo files as untracked, \"git ls-files\" shows nothing at all.\nI.e., handling of bare repos needs a workover.\n-- \nDr. Horst H. von Brand                   User #22616 counter.li.org\nDepartamento de Informatica                    Fono: +56 32 2654431\nUniversidad Tecnica Federico Santa Maria             +56 32 2654239\nCasilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513\n"}]}