request-pull: protect against OPTIONS_KEEPDASHDASH from environment
[gitweb.git] / t / t5150-request-pull.sh
index e012a364e1159926fe3bd296451269372c63b676..4c7f48a8077c8f7b84cd4ef25ad530a9347ce12a 100644 (file)
@@ -211,4 +211,18 @@ test_expect_success 'pull request format' '
 
 '
 
+test_expect_success 'request-pull ignores OPTIONS_KEEPDASHDASH poison' '
+
+       (
+               cd local &&
+               OPTIONS_KEEPDASHDASH=Yes &&
+               export OPTIONS_KEEPDASHDASH &&
+               git checkout initial &&
+               git merge --ff-only master &&
+               git push origin master:for-upstream &&
+               git request-pull -- initial "$downstream_url" >../request
+       )
+
+'
+
 test_done