Skip to content

Commit

Permalink
Adding support for "remote set-url"
Browse files Browse the repository at this point in the history
  • Loading branch information
bpartridge83 committed Nov 5, 2014
1 parent 958bc91 commit 52f70dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/repo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,17 @@ module.exports = class Repo
, (err, stdout, stderr) ->
callback err

# Public: Add a remote URL.
#
# name - String name of the remote.
# url - String url of the remote.
# callback - Receives `(err)`
#
remote_add_url: (name, url, callback) ->
@git "remote set-url", {}, ["--add", name, url]
, (err, stdout, stderr) ->
callback err

# Public: Remove a remote.
#
# name - String name of the remote.
Expand Down

0 comments on commit 52f70dd

Please sign in to comment.