From ac17a5f82e9a48373d482f0b30b0e51213b76ae8 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 3 Jul 2023 18:04:32 +0200 Subject: test: Extend cas-independent check with .gitignore file --- test/end-to-end/just-mr/cas-independent.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/end-to-end/just-mr/cas-independent.sh b/test/end-to-end/just-mr/cas-independent.sh index 1dceb01f..e1d44a53 100644 --- a/test/end-to-end/just-mr/cas-independent.sh +++ b/test/end-to-end/just-mr/cas-independent.sh @@ -23,6 +23,7 @@ readonly LBR="${TEST_TMPDIR}/local-build-root" mkdir -p "${DISTDIR}" mkdir -p foo/bar/baz echo "test data" > foo/bar/baz/data.txt +echo "/baz/" > foo/bar/.gitignore # add a .gitignore tar cf "${DISTDIR}/foo-1.2.3.tar" foo 2>&1 foocontent=$(git hash-object "${DISTDIR}/foo-1.2.3.tar") echo "Foo archive has content ${foocontent}" @@ -32,7 +33,7 @@ cd foo git init git config user.name 'N.O.Body' git config user.email 'nobody@example.org' -git add . +git add -f . # add everything, including any .gitignore git commit -m 'Just care about the tree' 2>&1 tree_id=$(git log -n 1 --format='%T') cd .. -- cgit v1.2.3