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:
parent
52f70dd377
commit
1209a68a34
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user