Browse Source

Fixed add remote

production
chess 3 years ago
parent
commit
42e65d311d
2 changed files with 4 additions and 1 deletions
  1. 1
    1
      cliverse.js
  2. 3
    0
      index.js

+ 1
- 1
cliverse.js View File

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

+ 3
- 0
index.js View File

, 'is-git-repo': (dir) => { , 'is-git-repo': (dir) => {
return nodeShellExec('git', ['-C', dir.name, 'rev-parse'], { stdio: 'ignore' }) 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) => { , 'set-url': (remotename, url) => {
var pushable = processedArgs.pushable || false; var pushable = processedArgs.pushable || false;
remotename = remotename || processedArgs._[1] remotename = remotename || processedArgs._[1]

Loading…
Cancel
Save