From 1209a68a34ae9b6dd1d169af31a3b748841dbdfe Mon Sep 17 00:00:00 2001 From: Brian Partridge Date: Wed, 5 Nov 2014 12:06:56 -0800 Subject: [PATCH] Deleting a remote URL (git remote set-url --delete...) --- src/repo.coffee | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/repo.coffee b/src/repo.coffee index ef4aa74..9bcd5a4 100644 --- a/src/repo.coffee +++ b/src/repo.coffee @@ -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.