diff --git a/tests/repos/scripts/dont-render b/tests/repos/scripts/dont-render index a203e4cf1d51d4b2b1834d97540a7727d6dea176..9870005f31bb06a9863b422d2b1c49fcef696f25 100755 --- a/tests/repos/scripts/dont-render +++ b/tests/repos/scripts/dont-render @@ -1,4 +1,9 @@ #!/bin/bash -e + +# This should prevent this script to load the local git user config: +# (HOME overwrite) +HOME="." + git init # Create binary @@ -13,4 +18,4 @@ git add image.jpg yes | head -n 102400 > toolarge git add toolarge -git commit --no-gpg-sign -am first +git commit -am first diff --git a/tests/repos/scripts/no-newline-at-end-of-file b/tests/repos/scripts/no-newline-at-end-of-file index 99793ae95c6587f18b8a199aaa3685a966017c95..4ef6715ec67d3d84a27ad9e9fcb4698c22b88c85 100755 --- a/tests/repos/scripts/no-newline-at-end-of-file +++ b/tests/repos/scripts/no-newline-at-end-of-file @@ -1,12 +1,17 @@ #!/bin/bash -e + +# This should prevent this script to load the local git user config: +# (HOME overwrite) +HOME="." + git init echo 1 > test echo -n 2 >> test git add test -git commit --no-gpg-sign -m old +git commit -m old echo 1 > test echo 2 >> test git add test -git commit --no-gpg-sign -m new +git commit -m new diff --git a/tests/repos/scripts/test_repo b/tests/repos/scripts/test_repo index 454896c140685a9c3e5108f57c5c3cc6d6bb5ce2..b0f50a633c2e7bf41e469d3ab06fa11993165ed2 100755 --- a/tests/repos/scripts/test_repo +++ b/tests/repos/scripts/test_repo @@ -1,13 +1,18 @@ #!/bin/bash -e + +# This should prevent this script to load the local git user config: +# (HOME overwrite) +HOME="." + git init echo "int a;" > test.c echo "function test() {}" > test.js git add test.c git add test.js -git commit --no-gpg-sign -m "Add some code" +git commit -m "Add some code" -git commit --no-gpg-sign --allow-empty -m "Empty commit 1" +git commit --allow-empty -m "Empty commit 1" git tag tag1 -git commit --no-gpg-sign --allow-empty -m "Empty commit 2" +git commit --allow-empty -m "Empty commit 2"