* alternates, git prune, git-prune(1) bug
@ 2008-08-27 15:18 Bruce Stephens
0 siblings, 0 replies; only message in thread
From: Bruce Stephens @ 2008-08-27 15:18 UTC (permalink / raw)
To: git
The suggested command-line in git-prune(1) makes no sense:
EXAMPLE
To prune objects not used by your repository nor another that
borrows from your repository via its
.git/objects/info/alternates:
$ git prune $(cd ../another && $(git rev-parse --all))
It surely should have the nested $() removed:
$ git prune $(cd ../another && git rev-parse --all)
But that doesn't really help if (as must be fairly common) the sharing
repository contains objects not in the repository being pruned. In
that case I just get "fatal: bad object: ..." for the first such
object.
And now that "git gc" prunes, what's the recommended way to set this
kind of thing up? I guess just not using alternates is the obvious
one, and that would work OK for me, but for sites that want lots of
sharing repositories (like git hosting sites) that wouldn't be so
good. Can one set gc.pruneExpire to "never"? Ah, OK, that looks as
though it'll work.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-27 15:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 15:18 alternates, git prune, git-prune(1) bug Bruce Stephens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).