Skip to content

adds git fallback in cacheOrApi to fix #373 - #374

Merged
nikhedonia merged 2 commits into
masterfrom
fix/fetch-private
Jul 17, 2020
Merged

adds git fallback in cacheOrApi to fix #373#374
nikhedonia merged 2 commits into
masterfrom
fix/fetch-private

Conversation

@nikhedonia

@nikhedonia nikhedonia commented Jul 17, 2020

Copy link
Copy Markdown
Collaborator

should fix #373 by gracefully falling back to FindCommit if API call fails.
In theory we could decide to not even try the API if we are in SSH mode, however the API is significantly faster then git so IMHO worth a try.
I presume querying the API to determine if the repository is public is slower then trying to get the file and failing

@nikhedonia nikhedonia changed the title adds git fallback cacheOrApi to fix #373 Jul 17, 2020
@nikhedonia
nikhedonia merged commit f95792c into master Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant