From: Oleg Broytman Date: Fri, 2 Jan 2015 20:31:37 +0000 (+0300) Subject: Change git repack depth from 250 to 20 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=cbbebd570fc6d3f3d125893003946b6749d5fb38;p=git-scripts.git Change git repack depth from 250 to 20 --- diff --git a/gc-and-repack b/gc-and-repack index ff16338..393ca28 100755 --- a/gc-and-repack +++ b/gc-and-repack @@ -5,6 +5,6 @@ for d in `"$prog_dir"/ls-not-packed` do echo "----- $d -----" && cd "$d" && git gc --aggressive && - git repack -a -d -f --depth=250 --window=250 && + git repack -a -d -f --depth=20 --window=250 && git fsck --strict || exit 1 done diff --git a/publish2web b/publish2web index c66a694..e9652d5 100755 --- a/publish2web +++ b/publish2web @@ -18,7 +18,7 @@ dest_dir="`basename \"$source_dir\"`".git && git clone --mirror --config core.sharedRepository=0644 "$source_dir" "$dest_dir" && cd "$dest_dir" && -git repack -a -d -f --depth=250 --window=250 && +git repack -a -d -f --depth=20 --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 . && diff --git a/repack-not-packed b/repack-not-packed index 88b88bc..995613b 100755 --- a/repack-not-packed +++ b/repack-not-packed @@ -4,6 +4,6 @@ prog_dir=`dirname "$0"` for d in `"$prog_dir"/ls-not-packed` do echo "----- $d -----" && cd "$d" && - git repack -a -d -f --depth=250 --window=250 && + git repack -a -d -f --depth=20 --window=250 && git fsck --strict || exit 1 done diff --git a/svn/svn2git b/svn/svn2git index 6ca904c..57bf7f2 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 repack -a -d -f --depth=250 --window=250 && +git repack -a -d -f --depth=20 --window=250 && echo "Cloned from $url using git-svn" >.git/description && exec "${VISUAL:-${EDITOR:-vi}}" .git/description