From: Oleg Broytman Date: Thu, 15 Mar 2018 02:20:56 +0000 (+0300) Subject: Fix: No need to run `git repack` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d3d0ca2212b1d89edcfecd4c2808522de129512e;p=git-scripts.git Fix: No need to run `git repack` `git gc --aggressive` runs `git repack` -A -d -l -f. --- diff --git a/gc-repack b/gc-repack deleted file mode 100755 index 80548d3..0000000 --- a/gc-repack +++ /dev/null @@ -1,5 +0,0 @@ -#! /bin/sh - -git gc --aggressive && -git repack -a -d -f --depth=20 --window=250 && -exec git fsck --strict diff --git a/gc-repack-recursive b/gc-repack-recursive deleted file mode 100755 index af5f067..0000000 --- a/gc-repack-recursive +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/sh - -prog_dir="`dirname \"$0\"`" && -"$prog_dir"/gc-repack && - -if [ -f .gitmodules ]; then - exec git submodule foreach "$prog_dir"/gc-repack -fi diff --git a/gc-repack-repos b/gc-repack-repos deleted file mode 100755 index 0a31f1c..0000000 --- a/gc-repack-repos +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh - -cd "`dirname \"$0\"`" && -prog_dir="`pwd`" && - -for d in `"$prog_dir"/ls-not-packed` -do - echo "----- $d -----" && cd "$d" && - "$prog_dir"/gc-repack-recursive || exit 1 -done diff --git a/repack-not-packed b/repack-not-packed deleted file mode 100755 index 995613b..0000000 --- a/repack-not-packed +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/sh - -prog_dir=`dirname "$0"` -for d in `"$prog_dir"/ls-not-packed` -do - echo "----- $d -----" && cd "$d" && - git repack -a -d -f --depth=20 --window=250 && - git fsck --strict || exit 1 -done diff --git a/svn/svn2git b/svn/svn2git index 5c68c17..f8ae407 100755 --- a/svn/svn2git +++ b/svn/svn2git @@ -56,6 +56,5 @@ 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 `git var GIT_EDITOR` .git/description