Skip to content

refresh_references.cc: bust LibGit2 remote list cache by reading config#1685

Merged
implausible merged 1 commit intonodegit:masterfrom
Mr-Wallet:fix/refresh-references-cache
May 31, 2019
Merged

refresh_references.cc: bust LibGit2 remote list cache by reading config#1685
implausible merged 1 commit intonodegit:masterfrom
Mr-Wallet:fix/refresh-references-cache

Conversation

@Mr-Wallet
Copy link
Contributor

Also removed calling git_odb_free when git_repository_odb fails.

This is a band-aid over a caching issue where LibGit2 is not checking the disk when listing the remote names. By manually reading the config, it busts whatever cache LibGit2 is holding on to.

Also removed calling `git_odb_free` when `git_repository_odb` fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants