Duy Nguyen [off-list ref] writes:
Yeah that's better. So the squash patch is something like this
Rather...
quoted hunk
diff --git a/t/t2203-add-intent.sh b/t/t2203-add-intent.sh
index a19f06b..80880b7 100755
--- a/t/t2203-add-intent.sh
+++ b/t/t2203-add-intent.sh
@@ -107,7 +107,9 @@ test_expect_success 'cache-tree does skip dir that becomes empty' '
mkdir -p 1/2/3 &&
echo 4 >1/2/3/4 &&
git add -N 1/2/3/4 &&
- test_must_fail git commit -m committed
+ git write-tree >actual &&
+ echo 4b825dc642cb6eb9a060e54bf8d69288fbee4904 >empty-tree &&
+ test_cmp empty-tree actual
written=$(git write-tree) &&
git ls-tree "$written" >actual &&
! grep 1 actual
That way, we have one less thing to worry about when the hash
function changes in the future. You may want to rename 1/2/3
to something more readable (e.g. dir/2/3) and grep for "dir"
instead, though.