vscode: let cSpell work on commit messages, too
[gitweb.git] / t / t5701-git-serve.sh
index 011a5796db5d98af3b2151563a8e9683b1139f1a..75ec79e6cb839e71f6830d9301d1982d0fc68925 100755 (executable)
@@ -194,4 +194,18 @@ test_expect_success 'sending server-options' '
        test_cmp actual expect
 '
 
+test_expect_success 'unexpected lines are not allowed in fetch request' '
+       git init server &&
+
+       test-pkt-line pack >in <<-EOF &&
+       command=fetch
+       0001
+       this-is-not-a-command
+       0000
+       EOF
+
+       test_must_fail git -C server serve --stateless-rpc <in >/dev/null 2>err &&
+       grep "unexpected line: .this-is-not-a-command." err
+'
+
 test_done