From: Christian Couder Date: Wed, 30 Nov 2016 21:04:12 GMT Subject: [RFC/PATCH v3 08/16] t0400: add test for external odb write support Message-ID: <20161130210420.15982-9-chriscool@tuxfamily.org> In-Reply-To: <20161130210420.15982-1-chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- 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 6c6da5cf4f..3c868cad4c 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@ -66,4 +66,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.command "$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.11.0.rc2.37.geb49ca6