From 3ecbf8db28105d147340b80d65a5a6d537233135 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 28 Jul 2020 12:56:46 +0200 Subject: bridge: store credentials in the Keyring instead of the git config --- cache/repo_cache_common.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cache/repo_cache_common.go') diff --git a/cache/repo_cache_common.go b/cache/repo_cache_common.go index a931f2be..1e330a4a 100644 --- a/cache/repo_cache_common.go +++ b/cache/repo_cache_common.go @@ -20,9 +20,8 @@ func (c *RepoCache) LocalConfig() repository.Config { return c.repo.LocalConfig() } -// GlobalConfig give access to the git global configuration -func (c *RepoCache) GlobalConfig() repository.Config { - return c.repo.GlobalConfig() +func (c *RepoCache) Keyring() repository.Keyring { + return c.repo.Keyring() } // GetPath returns the path to the repo. -- cgit From 71b7eb14010be0c7799b4d5394798c89e379891b Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 27 Sep 2020 00:54:14 +0200 Subject: repo: implement local/global/any config everywhere --- cache/repo_cache_common.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cache/repo_cache_common.go') diff --git a/cache/repo_cache_common.go b/cache/repo_cache_common.go index 1e330a4a..95e2f7bb 100644 --- a/cache/repo_cache_common.go +++ b/cache/repo_cache_common.go @@ -20,6 +20,16 @@ func (c *RepoCache) LocalConfig() repository.Config { return c.repo.LocalConfig() } +// GlobalConfig give access to the global scoped configuration +func (c *RepoCache) GlobalConfig() repository.Config { + return c.repo.GlobalConfig() +} + +// AnyConfig give access to a merged local/global configuration +func (c *RepoCache) AnyConfig() repository.ConfigRead { + return c.repo.AnyConfig() +} + func (c *RepoCache) Keyring() repository.Keyring { return c.repo.Keyring() } -- cgit