prog_dir="`dirname \"$0\"`" &&
-"$prog_dir"/gc-and-repack && \
-exec git submodule foreach "$prog_dir"/gc-and-repack
+"$prog_dir"/gc-and-repack || exit 1
+git submodule foreach "$prog_dir"/gc-and-repack
+exit 0 # Ignore errors from git submodule in bare repos
for d in `"$prog_dir"/ls-not-packed`
do
echo "----- $d -----" && cd "$d" &&
- test "$g" = "$d/.git" &&
- "$prog_dir"/gc-and-repack-recursive ||
- "$prog_dir"/gc-and-repack
+ "$prog_dir"/gc-and-repack-recursive || exit 1
done
prog_dir="`dirname \"$0\"`" &&
-"$prog_dir"/gc-not-packed && \
-exec git submodule foreach "$prog_dir"/gc-not-packed
+"$prog_dir"/gc-not-packed || exit 1
+git submodule foreach "$prog_dir"/gc-not-packed
+exit 0 # Ignore errors from git submodule in bare repos
for d in `"$prog_dir"/ls-not-packed`
do
echo "----- $d -----" && cd "$d" &&
- test "$g" = "$d/.git" &&
- "$prog_dir"/gc-not-packed-recursive ||
- "$prog_dir"/gc-not-packed
+ "$prog_dir"/gc-not-packed-recursive || exit 1
done