Skip to content

Commit 7fda0ec

Browse files
committed
added os.path.expanduser to the repo initialization
1 parent c63cd98 commit 7fda0ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/repo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def __init__(self, path=None):
2727
Returns
2828
``GitPython.Repo``
2929
"""
30+
path = os.path.expanduser(path)
3031
if not os.path.exists(path):
3132
raise NoSuchPathError(path)
3233

0 commit comments

Comments
 (0)