From dd5f99a8311bfaa7dea3d33048137e00a7d25831 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 2 Jan 2015 23:33:25 +0300 Subject: [PATCH] Run git gc --aggressive --- publish2web | 1 + svn/svn2git | 1 + 2 files changed, 2 insertions(+) diff --git a/publish2web b/publish2web index e9652d5..af746e6 100755 --- a/publish2web +++ b/publish2web @@ -18,6 +18,7 @@ dest_dir="`basename \"$source_dir\"`".git && git clone --mirror --config core.sharedRepository=0644 "$source_dir" "$dest_dir" && cd "$dest_dir" && +git gc --aggressive && git repack -a -d -f --depth=20 --window=250 && git fsck --strict && cp -p hooks/post-update.sample hooks/post-update && hooks/post-update && diff --git a/svn/svn2git b/svn/svn2git index 57bf7f2..dde280f 100755 --- a/svn/svn2git +++ b/svn/svn2git @@ -55,6 +55,7 @@ cp -p ../authors.txt .git/info && git config --local --path svn.authorsfile .git/info/authors.txt git svn gc && +git gc --aggressive && git repack -a -d -f --depth=20 --window=250 && echo "Cloned from $url using git-svn" >.git/description && exec "${VISUAL:-${EDITOR:-vi}}" .git/description -- 2.39.5