mirror of https://github.com/atom/atom.git
fetch
This commit is contained in:
parent
ba746fdd51
commit
f0a79a0143
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue