taskd/clone.sh: pack lotsa loose git-svn objects on retry
commitb0301e47dbe3a6c4e17849a12c69c2b1e74d2c33
authorKyle J. McKay <mackyle@gmail.com>
Wed, 10 Jun 2020 04:32:58 +0000 (9 21:32 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 10 Jun 2020 04:32:58 +0000 (9 21:32 -0700)
treef347464643160721a861792cf3d3de0b92b26757
parent75cb4bf7c4070c9ed5fb446f5cdadfb652cd9eaa
taskd/clone.sh: pack lotsa loose git-svn objects on retry

The `git-svn fetch` process only very sporadically runs the
`git gc --auto` routine.

If it repeatedly gets interrupted (e.g. flaky network) and
restarted, it may *never* run the `git gc --auto` routine!

Therefore, perform a check and if there are `lotsa_loose_objects`
go ahead and pack up the loose objects during the "brief pause"
before retrying.

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