about summary refs log tree commit diff
path: root/third_party/git/t/chainlint/exit-subshell.test
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/chainlint/exit-subshell.test')
-rw-r--r--third_party/git/t/chainlint/exit-subshell.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/git/t/chainlint/exit-subshell.test b/third_party/git/t/chainlint/exit-subshell.test
new file mode 100644
index 000000000000..4e6ab69b8867
--- /dev/null
+++ b/third_party/git/t/chainlint/exit-subshell.test
@@ -0,0 +1,6 @@
+(
+# LINT: "|| exit {n}" valid subshell escape without hurting &&-chain
+	foo || exit 1
+	bar &&
+	baz
+)