import { ExitFailedError } from '../errors' ; import { gpExecSync } from './index' ; export function checkoutBranch ( branch ) { gpExecSync ( { command : `git checkout -q "${ branch }"` } , ( err ) => { throw new ExitFailedError ( `Failed to checkout branch (${ branch })` , err ) ; } ) ; }