From: Oleg Broytman Date: Tue, 2 Dec 2014 23:43:15 +0000 (+0300) Subject: Run 'git repack' instead of 'git gc' X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9187d4d02c6f5aab348c08a0782c5114104e6d8e;hp=9af8979b66ee8ba1fb15df2cb4e724325c99a2b0;p=git-scripts.git Run 'git repack' instead of 'git gc' --- 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