@@ -288,7 +288,8 @@ export class RemoteGitCommand extends QuickCommand<State> {
288288			state . flags  =  [ '-f' ] ; 
289289		} 
290290
291- 		let  alreadyExists  =  ( await  state . repo . git . getRemotes ( {  filter : r  =>  r . name  ===  state . name  } ) ) . length  !==  0 ; 
291+ 		let  alreadyExists  = 
292+ 			( await  state . repo . git . remotes ( ) . getRemotes ( {  filter : r  =>  r . name  ===  state . name  } ) ) . length  !==  0 ; 
292293
293294		while  ( this . canStepsContinue ( state ) )  { 
294295			if  ( state . counter  <  3  ||  state . name  ==  null  ||  alreadyExists )  { 
@@ -298,7 +299,8 @@ export class RemoteGitCommand extends QuickCommand<State> {
298299				} ) ; 
299300				if  ( result  ===  StepResultBreak )  continue ; 
300301
301- 				alreadyExists  =  ( await  state . repo . git . getRemotes ( {  filter : r  =>  r . name  ===  result  } ) ) . length  !==  0 ; 
302+ 				alreadyExists  = 
303+ 					( await  state . repo . git . remotes ( ) . getRemotes ( {  filter : r  =>  r . name  ===  result  } ) ) . length  !==  0 ; 
302304				if  ( alreadyExists )  { 
303305					state . counter -- ; 
304306					continue ; 
@@ -364,7 +366,9 @@ export class RemoteGitCommand extends QuickCommand<State> {
364366		while  ( this . canStepsContinue ( state ) )  { 
365367			if  ( state . remote  !=  null )  { 
366368				if  ( typeof  state . remote  ===  'string' )  { 
367- 					const  [ remote ]  =  await  state . repo . git . getRemotes ( {  filter : r  =>  r . name  ===  state . remote  } ) ; 
369+ 					const  [ remote ]  =  await  state . repo . git 
370+ 						. remotes ( ) 
371+ 						. getRemotes ( {  filter : r  =>  r . name  ===  state . remote  } ) ; 
368372					if  ( remote  !=  null )  { 
369373						state . remote  =  remote ; 
370374					}  else  { 
@@ -390,7 +394,7 @@ export class RemoteGitCommand extends QuickCommand<State> {
390394
391395			endSteps ( state ) ; 
392396			try  { 
393- 				await  state . repo . git . removeRemote ( state . remote . name ) ; 
397+ 				await  state . repo . git . remotes ( ) . removeRemote ?. ( state . remote . name ) ; 
394398			}  catch  ( ex )  { 
395399				Logger . error ( ex ) ; 
396400				void  showGenericErrorMessage ( 'Unable to remove remote' ) ; 
@@ -420,7 +424,9 @@ export class RemoteGitCommand extends QuickCommand<State> {
420424		while  ( this . canStepsContinue ( state ) )  { 
421425			if  ( state . remote  !=  null )  { 
422426				if  ( typeof  state . remote  ===  'string' )  { 
423- 					const  [ remote ]  =  await  state . repo . git . getRemotes ( {  filter : r  =>  r . name  ===  state . remote  } ) ; 
427+ 					const  [ remote ]  =  await  state . repo . git 
428+ 						. remotes ( ) 
429+ 						. getRemotes ( {  filter : r  =>  r . name  ===  state . remote  } ) ; 
424430					if  ( remote  !=  null )  { 
425431						state . remote  =  remote ; 
426432					}  else  { 
@@ -445,7 +451,7 @@ export class RemoteGitCommand extends QuickCommand<State> {
445451			if  ( result  ===  StepResultBreak )  continue ; 
446452
447453			endSteps ( state ) ; 
448- 			void  state . repo . git . pruneRemote ( state . remote . name ) ; 
454+ 			void  state . repo . git . remotes ( ) . pruneRemote ?. ( state . remote . name ) ; 
449455		} 
450456	} 
451457
0 commit comments