about summary refs log tree commit diff
path: root/third_party/git/t/t5814-proto-disable-ext.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/t5814-proto-disable-ext.sh')
-rwxr-xr-xthird_party/git/t/t5814-proto-disable-ext.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/git/t/t5814-proto-disable-ext.sh b/third_party/git/t/t5814-proto-disable-ext.sh
new file mode 100755
index 000000000000..9d6f7dfa2cc3
--- /dev/null
+++ b/third_party/git/t/t5814-proto-disable-ext.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+test_description='test disabling of remote-helper paths in clone/fetch'
+. ./test-lib.sh
+. "$TEST_DIRECTORY/lib-proto-disable.sh"
+
+setup_ext_wrapper
+
+test_expect_success 'setup repository to clone' '
+	test_commit one &&
+	mkdir remote &&
+	git init --bare remote/repo.git &&
+	git push remote/repo.git HEAD
+'
+
+test_proto "remote-helper" ext "ext::fake-remote %S repo.git"
+
+test_done