This commit is contained in:
darangi 2021-03-23 08:10:49 +01:00
parent ba746fdd51
commit f0a79a0143
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ const git = (git, repositoryRootPath) => {
}
async function createOrCheckoutBranch(newBranch) {
await git.fetch();
const { branches } = await git.branch();
const found = Object.keys(branches).find(
branch => branch.indexOf(newBranch) > -1