commit - 854ca8a00969f4f4187b4e30c793021fbb476ee9
commit + 88ba84836c92b3f3755bf4e36d7acf782a753b71
blob - 2cd63ede1fbe95a1473eae9cd7f83f582ecfbc81
blob + c3bf21f542eafcad208d6df25cf8fbad74a2304d
--- regress/cmdline/cleanup.sh
+++ regress/cmdline/cleanup.sh
got ref -r $testroot/repo -d "refs/got/worktree/base-$wt_uuid"
# cleanup -n should not remove any objects
- ls -1 -R $testroot/repo/.git/objects > $testroot/objects-before
+ ls -R $testroot/repo/.git/objects > $testroot/objects-before
gotadmin cleanup -n -q -r $testroot/repo > $testroot/stdout
echo -n > $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
test_done "$testroot" "$ret"
return 1
fi
- ls -1 -R $testroot/repo/.git/objects > $testroot/objects-after
+ ls -R $testroot/repo/.git/objects > $testroot/objects-after
cmp -s $testroot/objects-before $testroot/objects-after
ret="$?"
if [ "$ret" != "0" ]; then
fi
# cleanup -n should not remove any objects
- ls -1 -R $testroot/repo/.git/objects > $testroot/objects-before
+ ls -R $testroot/repo/.git/objects > $testroot/objects-before
gotadmin cleanup -n -q -r $testroot/repo > $testroot/stdout
echo -n > $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
test_done "$testroot" "$ret"
return 1
fi
- ls -1 -R $testroot/repo/.git/objects > $testroot/objects-after
+ ls -R $testroot/repo/.git/objects > $testroot/objects-after
cmp -s $testroot/objects-before $testroot/objects-after
ret="$?"
if [ "$ret" != "0" ]; then