Re: Alternates and push
From: Petr Baudis <hidden>
Date: 2016-06-15 22:45:20
On Sat, Sep 06, 2008 at 12:21:06PM -0700, Shawn O. Pearce wrote:
github should do what repo.or.cz does: ln -s .../linus.git/refs digispeaker.git/refs/forkee That way the refs available in Linus' tree are also available in your tree as Git will transparently follow the symlink. However you have to be careful to make sure `git pack-refs` isn't run with `--all --prune` as it will delete the refs from linus.git when executed in digispeaker.git. Fun times when I did that to my own repository one day. ;-) Though we probably should fix Git to be somewhat smarter. But until that stable binary is available, the symlink trick above is a good work around.
But it should be used only in controlled environment. If you happen to have permissions to write to the forkee, you can wipe out its refs with git fetch --mirror (and if you don't happen to have permissions, it will just fail, so currently you cannot use this on repo.or.cz forks, unfortunately). If you don't make sure refs are never packed (I do on repo.or.cz, historically because of dumb transports - do they support packed refs by now?), this won't work either. Maybe there are other considerations too. -- Petr "Pasky" Baudis The next generation of interesting software will be done on the Macintosh, not the IBM PC. -- Bill Gates