-
-
Notifications
You must be signed in to change notification settings - Fork 937
Empty (bare) repository causes error #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Valentin, Can you access the repo with the git commandline ? Thanks for the info. |
The repo I was using had no commit. With another one, it works. Thank youSent from my Android phone with K-9 Mail. Please excuse my brevity. |
Alright, that explains it ! It does not check for the 'repo without commit' case yet. |
The issue is somewhat misleading, as not the instantiation of the repository is causing an error, but the call to In future, and if empty repositories have to be handled, you could check if the branch you see is valid, such as in repo.active_branch.is_valid() |
Hi,
I cannot instanciate a Repo object with a bare repository:
Regards,
Valentin Lorentz
The text was updated successfully, but these errors were encountered: