Signed-off-by: Christian Couder <chrisc...@tuxfamily.org>
---
 t/t0400-external-odb.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh
index f9e6ea1015..03df030461 100755
--- a/t/t0400-external-odb.sh
+++ b/t/t0400-external-odb.sh
@@ -71,4 +71,12 @@ test_expect_success 'helper can add objects to alt repo' '
        test "$size" -eq "$alt_size"
 '
 
+test_expect_success 'commit adds objects to alt repo' '
+       test_config odb.magic.scriptCommand "$HELPER" &&
+       test_commit three &&
+       hash3=$(git ls-tree HEAD | grep three.t | cut -f1 | cut -d\  -f3) &&
+       content=$(cd alt-repo && git show "$hash3") &&
+       test "$content" = "three"
+'
+
 test_done
-- 
2.14.1.576.g3f707d88cd

Reply via email to