mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Use main branch as default in project feature
This commit is contained in:
parent
7dca148349
commit
5bda221f9d
@ -421,7 +421,10 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
initRepo: function(cwd) {
|
initRepo: function(cwd) {
|
||||||
|
var args = ["init", "--initial-branch", "main"];
|
||||||
|
return runGitCommand(args, cwd).catch(function () {
|
||||||
return runGitCommand(["init"], cwd);
|
return runGitCommand(["init"], cwd);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
setUpstream: function(cwd,remoteBranch) {
|
setUpstream: function(cwd,remoteBranch) {
|
||||||
var args = ["branch","--set-upstream-to",remoteBranch];
|
var args = ["branch","--set-upstream-to",remoteBranch];
|
||||||
|
Loading…
Reference in New Issue
Block a user