{"thread":{"id":"15218","subject":"alternates, git prune, git-prune(1) bug","startedAt":"2008-08-27T15:18:31Z","lastAt":"2008-08-27T15:18:31Z","messageCount":1,"participants":["Bruce Stephens"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"88726","messageId":"801w0abi60.fsf@tiny.isode.net","threadId":"15218","inReplyTo":null,"subject":"alternates, git prune, git-prune(1) bug","fromName":"Bruce Stephens","fromEmail":"bruce.stephens@isode.com","sentAt":"2008-08-27T15:18:31Z","receivedAt":"2008-08-27T15:18:31Z","isPatch":false,"sender":{"key":"bruce.stephens@isode.com","avatar":null},"body":"The suggested command-line in git-prune(1) makes no sense:\n\nEXAMPLE\n       To prune objects not used by your repository nor another that\n       borrows from your repository via its\n       .git/objects/info/alternates:\n\n           $ git prune $(cd ../another && $(git rev-parse --all))\n\nIt surely should have the nested $() removed:\n\n           $ git prune $(cd ../another && git rev-parse --all)\n\nBut that doesn't really help if (as must be fairly common) the sharing\nrepository contains objects not in the repository being pruned.  In\nthat case I just get \"fatal: bad object: ...\" for the first such\nobject.\n\nAnd now that \"git gc\" prunes, what's the recommended way to set this\nkind of thing up?  I guess just not using alternates is the obvious\none, and that would work OK for me, but for sites that want lots of\nsharing repositories (like git hosting sites) that wouldn't be so\ngood.  Can one set gc.pruneExpire to \"never\"?  Ah, OK, that looks as\nthough it'll work.\n"}]}