diff options
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index 9ed3f714..6ee95aed 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -905,6 +905,10 @@ class Repo(object): odbt = kwargs.pop('odbt', odb_default_type) + # when pathlib.Path or other classbased path is passed + if not isinstance(path, str): + path = str(path) + ## A bug win cygwin's Git, when `--bare` or `--separate-git-dir` # it prepends the cwd or(?) the `url` into the `path, so:: # git clone --bare /cygwin/d/foo.git C:\\Work |