@@ -388,7 +388,9 @@ it.effect.each([
388388 [ "a token with an apostrophe" , "s3'cret" ] ,
389389 [ "a token with a double quote" , 's3"cret' ] ,
390390 [ "a host-only token with an at sign" , "abc@secret" ] ,
391- ] as const ) ( "keeps %s in the query out of a failed clone's error text" , ( [ , token ] ) =>
391+ [ "an unquoted token with an apostrophe" , "s3'cret" , true ] ,
392+ [ "an unquoted token with a double quote" , 's3"cret' , true ] ,
393+ ] as const ) ( "keeps %s in the query out of a failed clone's error text" , ( [ , token , unquoted ] ) =>
392394 Effect . gen ( function * ( ) {
393395 const remote =
394396 token === "abc@secret" ? "https://github.com" : "https://github.com/octocat/t3code.git" ;
@@ -405,7 +407,9 @@ it.effect.each([
405407 : cloneUrl ;
406408 yield * (
407409 input . progress ?. onStderrLine ?.(
408- `fatal: unable to access '${ diagnosticUrl } /': Could not resolve host: github.com` ,
410+ unquoted
411+ ? `fatal: ${ diagnosticUrl } /info/refs not valid: is this a git repository?`
412+ : `fatal: unable to access '${ diagnosticUrl } /': Could not resolve host: github.com` ,
409413 ) ?? Effect . void
410414 ) ;
411415 return yield * new GitCommandError ( {
@@ -423,7 +427,9 @@ it.effect.each([
423427
424428 assert . strictEqual (
425429 error . detail ,
426- `fatal: unable to access '${ remote } ${ token === "abc@secret" ? "/" : "" } ': Could not resolve host: github.com` ,
430+ unquoted
431+ ? `fatal: ${ remote } not valid: is this a git repository?`
432+ : `fatal: unable to access '${ remote } ${ token === "abc@secret" ? "/" : "" } ': Could not resolve host: github.com` ,
427433 ) ;
428434 } ) ,
429435) ;
0 commit comments