From 9187d4d02c6f5aab348c08a0782c5114104e6d8e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Dec 2014 02:43:15 +0300 Subject: [PATCH] Run 'git repack' instead of 'git gc' --- publish2web | 3 ++- svn/svn2git | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/publish2web b/publish2web index eff60e3..c66a694 100755 --- a/publish2web +++ b/publish2web @@ -18,7 +18,8 @@ dest_dir="`basename \"$source_dir\"`".git && git clone --mirror --config core.sharedRepository=0644 "$source_dir" "$dest_dir" && cd "$dest_dir" && -git gc --aggressive && git fsck --strict && +git repack -a -d -f --depth=250 --window=250 && +git fsck --strict && cp -p hooks/post-update.sample hooks/post-update && hooks/post-update && cp -p "$HOME"/Internet/WWW/htdocs/git.phdru.name/phdru.name/phdru.name.git/git-daemon-export-ok . && if [ "`cat \"$source_dir\"/.git/description`" = \ diff --git a/svn/svn2git b/svn/svn2git index b225f69..d5853da 100755 --- a/svn/svn2git +++ b/svn/svn2git @@ -55,6 +55,6 @@ 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=250 --window=250 && echo "Cloned from $url using git-svn" >.git/description && exec "${VISUAL:-${EDITOR:-vi}}" .git/description -- 2.39.5