Skip to content

Commit 63520ff

Browse files
committed
improve journey test to validate handling ambiguous of ssh-hosts
1 parent b06a0dd commit 63520ff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/journey/gix.sh

+9
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,15 @@ title "gix commit-graph"
355355
fi
356356
)
357357
)
358+
(with "the 'clone' sub-command"
359+
snapshot="$snapshot/clone"
360+
(with "an ambiguous ssh host which could be mistaken for an argument"
361+
it "fails without trying to pass it to command-line programs" && {
362+
WITH_SNAPSHOT="$snapshot/fail-ambigous-host" \
363+
expect_run $WITH_FAILURE "$exe_plumbing" free pack receive 'ssh://-oProxyCommand=open$IFS-aCalculator/foo'
364+
}
365+
)
366+
)
358367
(with "the 'index' sub-command"
359368
snapshot="$snapshot/index"
360369
title "gix free pack index create"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Error: Host name '-oProxyCommand=open$IFS-aCalculator' could be mistaken for a command-line argument

0 commit comments

Comments
 (0)