Bladeren bron

Fixed add remote

master
chess 3 jaren geleden
bovenliggende
commit
42e65d311d
2 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 1
    1
      cliverse.js
  2. 3
    0
      index.js

+ 1
- 1
cliverse.js Bestand weergeven

@@ -25,7 +25,7 @@ function nodeShellExec() {
});
}
child.on('close', (code) => {
var logEntry = { code }
var logEntry = { code, success }
if(+code !== 0 || opts.haserrors) { success = false; logEntry = { result: `${opts.title} exited with code ${code}`, success, code }};
if(opts.stdio !== 'ignore') {
logEntry = { result: `${opts.title} exited with code ${code}`, messages, code }

+ 3
- 0
index.js Bestand weergeven

@@ -509,6 +509,9 @@ var op = {
, 'is-git-repo': (dir) => {
return nodeShellExec('git', ['-C', dir.name, 'rev-parse'], { stdio: 'ignore' })
}
// git remote equivalents...
// git branch --set-upstream-to=elixir-unc/master master
// git push --set-upstream elixir-unc branch..
, 'set-url': (remotename, url) => {
var pushable = processedArgs.pushable || false;
remotename = remotename || processedArgs._[1]

Laden…
Annuleren
Opslaan