From 57f2e26e5aedc7ee52080bb1ebdd34d2fab0d876 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 17 Apr 2014 18:18:27 -0700 Subject: [PATCH] clone.sh: include note about initial size when appropriate Include a note in the mail message and the clone log about waiting up to one hour before cloning a repository that is a mirror of a non-Git source which uses git fast-import. The initial gc should take place within one hour after the initial mirror completes and it will reduce the initial bloat. --- taskd/clone.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/taskd/clone.sh b/taskd/clone.sh index 2facaf8..344a95c 100755 --- a/taskd/clone.sh +++ b/taskd/clone.sh @@ -225,6 +225,15 @@ echo "Final touches..." git update-server-info trap "" EXIT +sizenote= +! is_gfi_mirror || +sizenote=" +NOTE: Since this is a mirror of a non-Git source, the initial repository + size may be somewhat larger than necessary. This will be corrected + shortly. If you intend to clone this repository you may want to + wait up to 1 hour before doing so in order to receive the more + compact final size. +" [ -z "$mailaddrs" ] || mail -s "[$cfg_name] $proj clone completed" "$mailaddrs" <