diff options
author | Michael Muré <batolettre@gmail.com> | 2021-03-28 22:25:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 22:25:12 +0200 |
commit | 919227c6dafffaa2e4c497c0a514d75dcf168045 (patch) | |
tree | 062d022679c941cd7eabb40f5b22a3da35efd8af /bridge/core/auth | |
parent | fb6b2d873e1bbc653aa84ddce56c842202e00c33 (diff) | |
parent | 890c014d919f705eac624547031c79205a71321b (diff) | |
download | git-bug-919227c6dafffaa2e4c497c0a514d75dcf168045.tar.gz |
Merge pull request #608 from MichaelMure/fix-config
repo: fix various config issues around case insentivity
Diffstat (limited to 'bridge/core/auth')
-rw-r--r-- | bridge/core/auth/credential.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bridge/core/auth/credential.go b/bridge/core/auth/credential.go index 2327a6fc..20343c9c 100644 --- a/bridge/core/auth/credential.go +++ b/bridge/core/auth/credential.go @@ -3,12 +3,13 @@ package auth import ( "encoding/base64" "encoding/json" - "errors" "fmt" "strconv" "strings" "time" + "github.com/pkg/errors" + "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/repository" ) @@ -159,7 +160,8 @@ func List(repo repository.RepoKeyring, opts ...ListOption) ([]Credential, error) item, err := repo.Keyring().Get(key) if err != nil { - return nil, err + // skip unreadable items, nothing much we can do for them anyway + continue } cred, err := decode(item) |