Skip to content

Commit

Permalink
improve journey test to validate handling ambiguous of ssh-hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 24, 2023
1 parent b06a0dd commit 63520ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/journey/gix.sh
Expand Up @@ -355,6 +355,15 @@ title "gix commit-graph"
fi
)
)
(with "the 'clone' sub-command"
snapshot="$snapshot/clone"
(with "an ambiguous ssh host which could be mistaken for an argument"
it "fails without trying to pass it to command-line programs" && {
WITH_SNAPSHOT="$snapshot/fail-ambigous-host" \
expect_run $WITH_FAILURE "$exe_plumbing" free pack receive 'ssh://-oProxyCommand=open$IFS-aCalculator/foo'
}
)
)
(with "the 'index' sub-command"
snapshot="$snapshot/index"
title "gix free pack index create"
Expand Down
@@ -0,0 +1 @@
Error: Host name '-oProxyCommand=open$IFS-aCalculator' could be mistaken for a command-line argument

0 comments on commit 63520ff

Please sign in to comment.