git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Feature Request : Get repo size without cloning

From
ABAswin Benny <aswinbenny.edu@gmail.com>
Date
Oct 18, 2024, 09:50 UTC
Message-ID
<CAHJ9C2JNVH6SmE5FoR7u7Z=5eynm8QfW4ZHMeA6dvP0FodxNWA@mail.gmail.com>
I would like to request the following features to git :
1. A command or feature to get the size of the repo without cloning it
to the system
2. An option to know the size of objects that will be downloaded forehand.

Context : I am a student and I was building a SAAS tool that analyses code.I need to prevent people from cloning repos more than 1 GB. I could use the APIs from github and gitlab but there is no common method amongst them. Currently I am doing a shallow clone and after cloning check if the repo size exceeds 1GB, if it exceeds I will delete it. I have to clone the repos to know the repo size. Thanks in advance.

Next: brian m. carlson
Message 1 of 2 in “Feature Request : Get repo size without cloning”
  1. Aswin BennyOct 18, 2024
  2. brian m. carlsonOct 18, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.