aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5801-remote-helpers.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-09-23 10:35:06 -0700
committerJunio C Hamano <gitster@pobox.com>2024-09-23 10:35:06 -0700
commita4f062bdcf0c1055aa2cabd207b9f1a1be8d8823 (patch)
treefadb414209555945332ef27758aba15bb29e7659 /t/t5801-remote-helpers.sh
parent31a17429c0d1dab2ed99694ce0df14d21a6197f2 (diff)
parent6e7fac9bcab29e8d746b80f7e01631a461cdc785 (diff)
downloadgit-a4f062bdcf0c1055aa2cabd207b9f1a1be8d8823.tar.gz
Merge branch 'jk/diag-unexpected-remote-helper-death'
When a remote-helper dies before Git writes to it, SIGPIPE killed Git silently. We now explain the situation a bit better to the end user in our error message. * jk/diag-unexpected-remote-helper-death: print an error when remote helpers die during capabilities
Diffstat (limited to 't/t5801-remote-helpers.sh')
-rwxr-xr-xt/t5801-remote-helpers.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
index 20f43f7b7d..d21877150e 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -344,4 +344,15 @@ test_expect_success 'fetch tag' '
compare_refs local v1.0 server v1.0
'
+test_expect_success 'totally broken helper reports failure message' '
+ write_script git-remote-broken <<-\EOF &&
+ read cap_cmd
+ exit 1
+ EOF
+ test_must_fail \
+ env PATH="$PWD:$PATH" \
+ git clone broken://example.com/foo.git 2>stderr &&
+ grep aborted stderr
+'
+
test_done