@@ -362,7 +362,7 @@ export class BranchGitCommand extends QuickCommand {
362362 if ( state . counter < 3 || state . reference == null ) {
363363 const result = yield * pickBranchOrTagStep ( state , context , {
364364 placeholder : `Choose a base to create the new branch from` ,
365- picked : state . reference ?. ref ?? ( await state . repo . git . getBranch ( ) ) ?. ref ,
365+ picked : state . reference ?. ref ?? ( await state . repo . git . branches ( ) . getBranch ( ) ) ?. ref ,
366366 title : 'Select Base to Create Branch From' ,
367367 value : isRevisionReference ( state . reference ) ? state . reference . ref : undefined ,
368368 } ) ;
@@ -423,7 +423,7 @@ export class BranchGitCommand extends QuickCommand {
423423 await state . repo . switch ( state . reference . ref , { createBranch : state . name } ) ;
424424 } else {
425425 try {
426- await state . repo . git . createBranch ( state . name , state . reference . ref ) ;
426+ await state . repo . git . branches ( ) . createBranch ?. ( state . name , state . reference . ref ) ;
427427 } catch ( ex ) {
428428 Logger . error ( ex ) ;
429429 // TODO likely need some better error handling here
@@ -433,7 +433,7 @@ export class BranchGitCommand extends QuickCommand {
433433
434434 if ( state . associateWithIssue != null ) {
435435 const issue = state . associateWithIssue ;
436- const branch = await state . repo . git . getBranch ( state . name ) ;
436+ const branch = await state . repo . git . branches ( ) . getBranch ( state . name ) ;
437437 // TODO: These descriptors are hacked in. Use an integration function to get the right resource for the issue.
438438 const owner = getIssueOwner ( issue ) ;
439439 if ( branch != null && owner != null ) {
@@ -675,7 +675,7 @@ export class BranchGitCommand extends QuickCommand {
675675
676676 endSteps ( state ) ;
677677 try {
678- await state . repo . git . renameBranch ( state . reference . ref , state . name ) ;
678+ await state . repo . git . branches ( ) . renameBranch ?. ( state . reference . ref , state . name ) ;
679679 } catch ( ex ) {
680680 Logger . error ( ex ) ;
681681 // TODO likely need some better error handling here
0 commit comments