We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90e8b9b + 365c2aa commit a8793d2Copy full SHA for a8793d2
t/t1506-rev-parse-diagnosis.sh
@@ -8,8 +8,11 @@ exec </dev/null
8
9
test_did_you_mean ()
10
{
11
- printf "fatal: Path '$2$3' $4, but not ${5:-'$3'}.\n" >expected &&
12
- printf "Did you mean '$1:$2$3'${2:+ aka '$1:./$3'}?\n" >>expected &&
+ sq="'" &&
+ cat >expected <<-EOF &&
13
+ fatal: Path '$2$3' $4, but not ${5:-$sq$3$sq}.
14
+ Did you mean '$1:$2$3'${2:+ aka $sq$1:./$3$sq}?
15
+ EOF
16
test_cmp expected error
17
}
18
0 commit comments