Fetch satellites with --prune flag to avoid satellite corruption
Created by: ayalaio
I don't see a reason for satellites to keep tracking old deleted branches on the remote.
Actually it can cause issues.
For example, if a branch called
a/b
is deleted on the remote and then a branch called
a/b/c
is created.
The satellite will fail to fetch since it is already tracking a/b
Making it impossible to now track branch a/b/c
That is because If branch a/b
exists, no branch named a/b/anything
can be created.
The satellite becomes useless since it can't fetch no more.
Fetching with --prune
flag
$ git fetch --prune
will fetch while pruning untraceable branches.