Dennis Kaarsemaker writes:
> +static int check_overlapping_remotes(struct remote *first, void *priv) {
> + struct remote *second = priv;
> + int i, j;
> + if(!second)
> + return for_each_remote(check_overlapping_remotes, first);
> + if(first == second)
> +
When cloning a repo with --mirror, and adding more remotes later,
get_stale_heads for origin would mark all refs from other repos as
stale. There's no "good" way to solve, this so the best thing we can do
is refusing to prune if we detect this and warning the user.
Signed-off-by: Dennis Kaarsemake
2 matches
Mail list logo