We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
Following is the snippet of the code I am using.
import git repo = git.Repo(search_parent_directories=True) branch = repo.active_branch
After running the code, I have received the following error.
File "/home/user_name/.local/lib/python3.8/site-packages/git/repo/base.py", line 181, in __init__ raise InvalidGitRepositoryError(epath) git.exc.InvalidGitRepositoryError: /home/user_name/.local/lib/python3.8/site-packages/git/repo
It will be really great if I get some suggestions about solving this error. I am using gitpython version 3.1.12.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Does the path at 'current working directory' actually contain a repository? Here is what GitPython does to figure out if there is a git directory.
Without further information there is not much that can be done here.
Sorry, something went wrong.
I will check that. Thank you
No branches or pull requests
Following is the snippet of the code I am using.
After running the code, I have received the following error.
It will be really great if I get some suggestions about solving this error. I am using gitpython version 3.1.12.
Thanks a lot.
The text was updated successfully, but these errors were encountered: