We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1efee49 + b094873 commit 7b5956fCopy full SHA for 7b5956f
src/Base.js
@@ -94,8 +94,9 @@ class Base {
94
.then(() => {
95
// Create the `develop` branch if it does not already exist
96
return NodeGit.Branch.lookup(repo, developBranchName, NodeGit.Branch.BRANCH.LOCAL)
97
- .catch(() => repo.getBranchCommit(masterBranchName)
98
- .then((commit) => repo.createBranch(developBranchName, commit.id())));
+ .catch(() => repo.getBranchCommit(`refs/remotes/origin/${developBranchName}`))
+ .catch(() => repo.getBranchCommit(masterBranchName))
99
+ .then((commit) => repo.createBranch(developBranchName, commit.id()));
100
})
101
.then(() => repo.config())
102
.then((config) => {
0 commit comments