1
0
mirror of https://github.com/danog/gift.git synced 2024-11-26 20:04:47 +01:00

Deleting a remote URL (git remote set-url --delete...)

This commit is contained in:
Brian Partridge 2014-11-05 12:06:56 -08:00
parent 52f70dd377
commit 1209a68a34

View File

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