Skip to content

GitHub get-tree API limits and recursivity #23748

Discussion options

You must be logged in to vote

Hi @alhaddad-nasry,

Thanks for being here :slight_smile:

We actually have a limit of 100,000 entries. If the recursive parameter is supplied, we will read and return a maximum of 7 MB worth of entries from git ls-tree.

The limit was bumped from 1,000 entries to 100,000 in 2014. The issue linked to in the OP may have been working on slightly outdated assumptions.

This all said, keep in mind that 100,000 is the current limit, but it could change anytime in the future.

I hope this helps! 

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants