Re: [PATCH] Use the alternates of the source repository for dissociating clone
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 15, 2015, 14:11 UTC
- Message-ID
- <alpine.DEB.1.00.1510151609280.31610@s15462909.onlinehome-server.info>
- In-Reply-To
- <561F8DE9.4040703@cetitec.com>
Hi Alex,
On Thu, 15 Oct 2015, Alexander Riesen wrote:
> The "--dissociate" option required reference repositories, which sometimes > demanded a look into the objects/info/alternates by the user. As this > is something which can be figured out automatically, do it in the > clone unless there is no other reference repositories.
Would it not make sense to reuse the copy_alternates() function to simply copy the alternates and let `--dissociate` run its course with the copied .objects/info/alternate file? That would make for less new code...
Ciao, Dscho