Skip to content

Commit

Permalink
Deleting a remote URL (git remote set-url --delete...)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpartridge83 committed Nov 5, 2014
1 parent 52f70dd commit 1209a68
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 @@ -198,6 +198,17 @@ module.exports = class Repo
, (err, stdout, stderr) ->
callback err

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

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

0 comments on commit 1209a68

Please sign in to comment.