File tree 3 files changed +19
-0
lines changed
snapshots/plumbing/no-repo/pack
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,12 @@ title "gix commit-graph"
345
345
}
346
346
)
347
347
)
348
+ (with " an ambiguous ssh host which could be mistaken for an argument"
349
+ it " fails without trying to pass it to command-line programs" && {
350
+ WITH_SNAPSHOT=" $snapshot /fail-ambigous-host" \
351
+ expect_run $WITH_FAILURE " $exe_plumbing " free pack receive ' ssh://-oProxyCommand=open$IFS-aCalculator/foo'
352
+ }
353
+ )
348
354
fi
349
355
)
350
356
elif [[ " $kind " = " small" ]]; then
@@ -355,6 +361,17 @@ title "gix commit-graph"
355
361
fi
356
362
)
357
363
)
364
+ if test " $kind " = " max" || test " $kind " = " max-pure" ; then
365
+ (with " the 'clone' sub-command"
366
+ snapshot=" $snapshot /clone"
367
+ (with " an ambiguous ssh host which could be mistaken for an argument"
368
+ it " fails without trying to pass it to command-line programs" && {
369
+ WITH_SNAPSHOT=" $snapshot /fail-ambigous-host" \
370
+ expect_run $WITH_FAILURE " $exe_plumbing " clone ' ssh://-oProxyCommand=open$IFS-aCalculator/foo'
371
+ }
372
+ )
373
+ )
374
+ fi
358
375
(with " the 'index' sub-command"
359
376
snapshot=" $snapshot /index"
360
377
title " gix free pack index create"
Original file line number Diff line number Diff line change
1
+ [2KError: Host name '-oProxyCommand=open$IFS-aCalculator' could be mistaken for a command-line argument
Original file line number Diff line number Diff line change
1
+ Error: Host name '-oProxyCommand=open$IFS-aCalculator' could be mistaken for a command-line argument
You can’t perform that action at this time.
0 commit comments