From: Bruce Stephens <bruce.stephens@isode.com>
To: git@vger.kernel.org
Subject: alternates, git prune, git-prune(1) bug
Date: Wed, 27 Aug 2008 16:18:31 +0100 [thread overview]
Message-ID: <801w0abi60.fsf@tiny.isode.net> (raw)
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.
reply other threads:[~2008-08-27 15:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=801w0abi60.fsf@tiny.isode.net \
--to=bruce.stephens@isode.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).