File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1400,12 +1400,14 @@ export class Git {
14001400 if ( ex instanceof WorkspaceUntrustedError ) return emptyArray as [ ] ;
14011401
14021402 const unsafeMatch =
1403- / ^ f a t a l : d e t e c t e d d u b i o u s o w n e r s h i p i n r e p o s i t o r y a t ' ( [ ^ ' ] + ) ' [ \ s\S ] * g i t c o n f i g - - g l o b a l - - a d d s a f e \. d i r e c t o r y ' ? ( [ ^ ' \n ] + ) ' ? $ / m. exec (
1403+ / (?: ^ f a t a l : d e t e c t e d d u b i o u s o w n e r s h i p i n r e p o s i t o r y a t ' ( [ ^ ' ] + ) ' | u n s a f e r e p o s i t o r y \( ' ( [ ^ ' ] + ) ' i s o w n e d b y s o m e o n e e l s e \) ) [ \ s\S ] * ( g i t c o n f i g - - g l o b a l - - a d d s a f e \. d i r e c t o r y [ ^ \n • ] + ) / m. exec (
14041404 ex . stderr ,
14051405 ) ;
1406- if ( unsafeMatch ?. length === 3 ) {
1406+ if ( unsafeMatch != null ) {
14071407 Logger . log (
1408- `Skipping; unsafe repository detected in '${ unsafeMatch [ 1 ] } '; run 'git config --global --add safe.directory ${ unsafeMatch [ 2 ] } ' to allow it` ,
1408+ `Skipping; unsafe repository detected in '${ unsafeMatch [ 1 ] || unsafeMatch [ 2 ] } '; run '${
1409+ unsafeMatch [ 3 ]
1410+ } ' to allow it`,
14091411 ) ;
14101412 return [ false ] ;
14111413 }
You can’t perform that action at this time.
0 commit comments