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
07f1a07642
commit
d6cf520009
@ -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