cloning: enforce $Girocco::Config::max_clone_objects
commit026ba9850f93b45d164fcf69a58727e2bcdd2580
authorKyle J. McKay <mackyle@gmail.com>
Sat, 15 Aug 2020 21:44:26 +0000 (15 14:44 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 15 Aug 2020 21:44:26 +0000 (15 14:44 -0700)
treebc49678162202c74b07a3cec1fa13ee1d1a0b649
parentd3024fe2ba2b8315449ef40fd1a7e150c965c6d6
cloning: enforce $Girocco::Config::max_clone_objects

When cloning a new project, enforce the new
$Girocco::Config::max_clone_objects limit.

Additionally, if the clone ends up failing because the limit was
exceeded, immediately remove all files in the objects subdirectory
hierarchy, include an "objects exceeded" blurb in the failure message
and always cc the configured admin address in such a case regardless
of the admincc setting.

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