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.
refs/remotes/origin/<develop>
1 parent 1efee49 commit b094873Copy full SHA for b094873
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