gitpython-developers / GitPython

GitPython is a python library used to interact with Git repositories.
http://gitpython.readthedocs.org
BSD 3-Clause "New" or "Revised" License
4.65k stars 906 forks source link

Update base.py #1965

Closed alex20230721 closed 1 month ago

alex20230721 commented 1 month ago

https://github.com/gitpython-developers/GitPython/issues/1963#issue-2563470127

alex20230721 commented 1 month ago

Bare repositories are typically cloned with the .git extension, hence the example is representing something that is common. There is no point in trying to make it work for a non-bare clone.

However, you could add another line that shows that one can also point at the .git directory that is typically sitting in a worktree.

Sorry, I just learned about the concept of bare repo today.