From d3d0ca2212b1d89edcfecd4c2808522de129512e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 15 Mar 2018 05:20:56 +0300 Subject: [PATCH] Fix: No need to run `git repack` `git gc --aggressive` runs `git repack` -A -d -l -f. --- gc-repack | 5 ----- gc-repack-recursive | 8 -------- gc-repack-repos | 10 ---------- repack-not-packed | 9 --------- svn/svn2git | 1 - 5 files changed, 33 deletions(-) delete mode 100755 gc-repack delete mode 100755 gc-repack-recursive delete mode 100755 gc-repack-repos delete mode 100755 repack-not-packed 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 -- 2.39.5