mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 11:29:51 -05:00
fix inf loop for creds on windows (#7094)
Co-authored-by: James Cor <james@dolthub.com>
This commit is contained in:
@@ -96,7 +96,7 @@ func FindAndLoadLocalCreds(fs filesys.Filesys) (creds *LocalCreds, err error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for root != "" && root[len(root)-1] != '/' {
|
||||
for root != "" && root[len(root)-1] != filepath.Separator {
|
||||
creds, err := LoadLocalCreds(fs)
|
||||
if err == nil {
|
||||
return creds, err
|
||||
|
||||
Reference in New Issue
Block a user