From: Oleg Broytman Date: Fri, 2 Jan 2015 20:33:25 +0000 (+0300) Subject: Run git gc --aggressive X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=dd5f99a8311bfaa7dea3d33048137e00a7d25831 Run git gc --aggressive --- 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