Check if a repository is empty
An empty repository has just been initialized and contains no references apart from HEAD, which must be pointing to the unborn master branch.
Repo to test
1 if the repository is empty, 0 if it isn't, error code if the repository is corrupted
See Implementation
Check if a repository is empty
An empty repository has just been initialized and contains no references apart from HEAD, which must be pointing to the unborn master branch.