Skip to content

Commit a84cc63

Browse files
authored
fixed #141 (#142)
1 parent 8ea13f1 commit a84cc63

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/Constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = {
1818
FrameworkRepositoryName : 'adapt_framework',
1919
ComponentRepository : process.env.ADAPT_COMPONENT || 'https://github.com/adaptlearning/adapt-component',
2020
ComponentRepositoryName : 'adapt-component',
21-
DefaultBranch : process.env.ADAPT_BRANCH || 'master',
2221
HomeDirectory : searchForHome(),
2322
getRegistry:getRegistry,
2423
setCwd: setCwd,

lib/commands/create.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ module.exports = {
1313
create: function (renderer) {
1414
var type = arguments.length >= 3 ? arguments[1] : Constants.DefaultCreateType,
1515
localDir = arguments.length >= 4 ? arguments[2] : undefined,
16-
branch = arguments.length >= 5 ? arguments[3] : Constants.DefaultBranch,
16+
branch = arguments.length >= 5 ? arguments[3] : undefined,
1717
done = arguments[arguments.length-1];
1818
highest()
1919
.then(function (tag) {
2020
return confirm({
2121
type: type,
2222
localDir: localDir,
23-
branch: tag,
23+
branch: branch || tag,
2424
renderer: renderer
2525
});
2626
})

0 commit comments

Comments
 (0)