fix inf loop for creds on windows (#7094)

Co-authored-by: James Cor <james@dolthub.com>
This commit is contained in:
James Cor
2023-12-04 14:27:25 -08:00
committed by GitHub
parent e723577492
commit e8ce41fee9
+1 -1
View File
@@ -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