mbostock / gistup

Create a gist from terminal, then use git to update it.
Other
488 stars 41 forks source link

If origin exists, throws error #10

Closed muschellij2 closed 10 years ago

muschellij2 commented 10 years ago

Getting the error below.

The error seems to fail in "gitRemoteDoesNotExist", but the error is that the remote origin already exists.

/usr/local/lib/node_modules/gistup/bin/gistup:80
  if (error) throw error;
                   ^
Error: the remote "origin" already exists.
    at /usr/local/lib/node_modules/gistup/bin/gistup:154:82
    at ChildProcess.exithandler (child_process.js:538:7)
    at ChildProcess.EventEmitter.emit (events.js:91:17)
    at maybeClose (child_process.js:638:16)
    at Socket.ChildProcess.spawn.stdin (child_process.js:825:11)
    at Socket.EventEmitter.emit (events.js:88:17)
    at Socket._destroy.destroyed (net.js:357:10)
    at process.startup.processNextTick.process._tickCallback (node.js:325:13)
    at process.startup.processMakeCallback.process._makeCallback (node.js:253:15)
mbostock commented 10 years ago

Yes, it’s letting you know you already have a remote origin defined, and so it doesn’t want to overwrite it. I’ll have it spit out a friendlier error.

mbostock commented 10 years ago

Related #9.