Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork938
Open
Labels
Description
Following is the snippet of the code I am using.
importgitrepo=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",line181,in__init__raiseInvalidGitRepositoryError(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.