mirror of
https://github.com/danog/gift.git
synced 2024-11-30 04:19:37 +01:00
added Repo#remote_remove(name, callback)
This commit is contained in:
parent
d2ccc6e406
commit
334417ea34
@ -103,6 +103,16 @@ module.exports = class Repo
|
|||||||
, (err, stdout, stderr) ->
|
, (err, stdout, stderr) ->
|
||||||
callback err
|
callback err
|
||||||
|
|
||||||
|
# Public: Remove a remote.
|
||||||
|
#
|
||||||
|
# name - String name of the remote.
|
||||||
|
# callback - Receives `(err)`
|
||||||
|
#
|
||||||
|
remote_remove: (name, callback) ->
|
||||||
|
@git "remote", {}, ["rm", name]
|
||||||
|
, (err, stdout, stderr) ->
|
||||||
|
callback err
|
||||||
|
|
||||||
# Public: `git fetch <name>`.
|
# Public: `git fetch <name>`.
|
||||||
#
|
#
|
||||||
# name - String name of the remote
|
# name - String name of the remote
|
||||||
|
Loading…
Reference in New Issue
Block a user