Skip to content
\n

After running the code, I have received the following error.

\n
File \"/home/user_name/.local/lib/python3.8/site-packages/git/repo/base.py\", line 181, in __init__\n    raise InvalidGitRepositoryError(epath)\ngit.exc.InvalidGitRepositoryError: /home/user_name/.local/lib/python3.8/site-packages/git/repo
\n

It will be really great if I get some suggestions about solving this error. I am using gitpython version 3.1.12.

\n

Thanks a lot.

","upvoteCount":2,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

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.

\n

Without further information there is not much that can be done here.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1135#discussioncomment-408762"}}}

git.exc.InvalidGitRepositoryError #1135

Answered by Byron
mohoray asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1112 on February 26, 2021 11:13.