alternates, git prune, git-prune(1) bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux