diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-21 01:07:15 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-21 01:07:15 +0200 |
commit | b32e92d013f6fe0d97f094c4b1991100d568f980 (patch) | |
tree | c80e847e3409fe0303a3ebabdf3e2a01c45b37f3 /storage/memory/storage.go | |
parent | c9f0c29f423f9bb26f32d6e8c7098f275171afb9 (diff) | |
download | go-git-b32e92d013f6fe0d97f094c4b1991100d568f980.tar.gz |
remote and repository base on ConfigStore
Diffstat (limited to 'storage/memory/storage.go')
-rw-r--r-- | storage/memory/storage.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go index e242008..d67368f 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -89,6 +89,11 @@ func (c *ConfigStorage) SetRemote(r *config.RemoteConfig) error { return nil } +func (c *ConfigStorage) DeleteRemote(name string) error { + delete(c.RemotesConfig, name) + return nil +} + // ObjectStorage is the implementation of core.ObjectStorage for memory.Object type ObjectStorage struct { Objects map[core.Hash]core.Object |