Browse Source

Fixed add remote

pull/4/head
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

@@ -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 View File

@@ -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]

Loading…
Cancel
Save