You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clone from URL (Repo is empty), but the property bare return false. #1084
Example, I just clone from URL : https://github.com/apache/incubator-argus.
It is an empty repo. But when I call git.Repo.clone_from, the property bare return False.
I believe the issue here may be a misunderstanding of what a bare repository is, as any repository can be a bare clone if it was cloned with bare=true or --bare respectively.
The bare flag has nothing to do with the repository being empty.
Activity
Byron commentedon Nov 16, 2020
I believe the issue here may be a misunderstanding of what a bare repository is, as any repository can be a bare clone if it was cloned with
bare=trueor--barerespectively.The
bareflag has nothing to do with the repository being empty.dota17 commentedon Nov 16, 2020
How we can use gitpython to check an empty repo?
Byron commentedon Nov 16, 2020
You could indeed clone a bare repository and then have a look at the tree at the branch of interest - it represents the top-level directory.