]> git.phdru.name Git - git-scripts.git/blob - gc-and-repack-repos
Test status only in repos with worktrees
[git-scripts.git] / gc-and-repack-repos
1 #! /bin/sh
2
3 cd "`dirname \"$0\"`" &&
4 prog_dir="`pwd`" &&
5
6 for d in `"$prog_dir"/ls-not-packed`
7 do
8    echo "----- $d -----" && cd "$d" &&
9    test "$g" = "$d/.git" &&
10    "$prog_dir"/gc-and-repack-recursive ||
11    "$prog_dir"/gc-and-repack
12 done