taskd/clone.sh: clear more failed clone crud
commitd76b334a38b0219d82c924d048027d0dbdd37f8c
authorKyle J. McKay <mackyle@gmail.com>
Wed, 2 Sep 2020 22:20:43 +0000 (2 15:20 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 2 Sep 2020 22:20:43 +0000 (2 15:20 -0700)
treeda8c1415fa7d87cdfd8a83136a350388c07d851c
parentfe9538746cb1c974c528df5f978243907dbfae1d
taskd/clone.sh: clear more failed clone crud

A failed clone should not have any of these:

  - index
  - refslogs/*
  - logs/*
  - info/refs
  - objects/info/packs
  - objects/info/commit-graph

Especially if it failed because it exceeded a size limit.

Make sure they get removed when appropriate to avoid
unnecessarily wasting disk space.

Also make sure that the exceeds limit cleanup always takes
place regardless of whether or not an `objects` directory
exists.

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