clone.sh: be more robust restarting a failed clone
commit7df08bc721a692bd8f09ed95edf205aa81176653
authorKyle J. McKay <mackyle@gmail.com>
Sun, 5 Jun 2016 01:50:10 +0000 (4 18:50 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 5 Jun 2016 01:50:10 +0000 (4 18:50 -0700)
tree45a2af5b4247f1759975f0864a9a5a0f46886842
parent621cb05fffc75b93f175c3d1d15309456093598e
clone.sh: be more robust restarting a failed clone

Make sure that *all* leftovers from any other possible clone
type are completely obliterated before retrying the clone.

Also record the clone mirror type for future use by update.sh.

While clearing out leftovers, support pre-seeding the remote.origin
section from remote-template.origin after it's been cleared in
case some additional special settings need to be in place.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
taskd/clone.sh