mv .git/objects/pack/* alt_objects/pack &&
git repack -a &&
myidx=$(ls -1 .git/objects/pack/*.idx) &&
- test -f "$myidx" &&
+ test_path_is_file "$myidx" &&
for p in alt_objects/pack/*.idx
do
git verify-pack -v $p | sed -n -e "/^[0-9a-f]\{40\}/p"
git repack &&
git repack -a -d &&
myidx=$(ls -1 .git/objects/pack/*.idx) &&
- test -f "$myidx" &&
+ test_path_is_file "$myidx" &&
for p in alt_objects/pack/*.idx
do
git verify-pack -v $p | sed -n -e "/^[0-9a-f]\{40\}/p"
for p in alt_objects/pack/*.pack
do
base_name=$(basename $p .pack) &&
- if test -f alt_objects/pack/$base_name.keep
+ if test_path_is_file alt_objects/pack/$base_name.keep
then
rm alt_objects/pack/$base_name.keep
else
done &&
git repack -a -d &&
myidx=$(ls -1 .git/objects/pack/*.idx) &&
- test -f "$myidx" &&
+ test_path_is_file "$myidx" &&
for p in alt_objects/pack/*.idx
do
git verify-pack -v $p | sed -n -e "/^[0-9a-f]\{40\}/p"