mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4036 from kazuhitoyokoi/master-usemain
Use main branch as default in project feature
This commit is contained in:
commit
149e8ce9b0
@ -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