diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2019-01-16 20:28:15 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-17 20:25:07 +0100 |
commit | 07c3c2aa16370fd97551b7d1aa6af3d051e7cf8f (patch) | |
tree | c1cbc5c854f9802361f09189534ad73e621fdbdd /t/t5537-fetch-shallow.sh | |
parent | {fetch,upload}-pack: sideband v2 fetch response (diff) | |
download | git-07c3c2aa16370fd97551b7d1aa6af3d051e7cf8f.tar.xz git-07c3c2aa16370fd97551b7d1aa6af3d051e7cf8f.zip |
tests: define GIT_TEST_SIDEBAND_ALL
Define a GIT_TEST_SIDEBAND_ALL environment variable meant to be used
from tests. When set to true, this overrides uploadpack.allowsidebandall
to true, allowing the entire test suite to be run as if this
configuration is in place for all repositories.
As of this patch, all tests pass whether GIT_TEST_SIDEBAND_ALL is unset
or set to 1.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5537-fetch-shallow.sh')
-rwxr-xr-x | t/t5537-fetch-shallow.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5537-fetch-shallow.sh b/t/t5537-fetch-shallow.sh index 6faf17e17a..6caf628efa 100755 --- a/t/t5537-fetch-shallow.sh +++ b/t/t5537-fetch-shallow.sh @@ -243,7 +243,8 @@ test_expect_success 'shallow fetches check connectivity before writing shallow f "$(git -C "$REPO" rev-parse HEAD)" \ "$(git -C "$REPO" rev-parse HEAD^)" \ >"$HTTPD_ROOT_PATH/one-time-sed" && - test_must_fail git -C client fetch --depth=1 "$HTTPD_URL/one_time_sed/repo" \ + test_must_fail env GIT_TEST_SIDEBAND_ALL=0 git -C client \ + fetch --depth=1 "$HTTPD_URL/one_time_sed/repo" \ master:a_branch && # Ensure that the one-time-sed script was used. |