]> git.phdru.name Git - git-scripts.git/commitdiff
Fix: No need to run `git repack`
authorOleg Broytman <phd@phdru.name>
Thu, 15 Mar 2018 02:20:56 +0000 (05:20 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 15 Mar 2018 02:23:29 +0000 (05:23 +0300)
`git gc --aggressive` runs `git repack` -A -d -l -f.

gc-repack [deleted file]
gc-repack-recursive [deleted file]
gc-repack-repos [deleted file]
repack-not-packed [deleted file]
svn/svn2git

diff --git a/gc-repack b/gc-repack
deleted file mode 100755 (executable)
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 (executable)
index af5f067..0000000
+++ /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 (executable)
index 0a31f1c..0000000
+++ /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 (executable)
index 995613b..0000000
+++ /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
index 5c68c17248f5bad2765fa81eaf128e9cb5c16987..f8ae407835d2aa637d025312b6558ff6c1007ae3 100755 (executable)
@@ -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