We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3e1b2 commit 74b1d6cCopy full SHA for 74b1d6c
git_dummy/__main__.py
@@ -66,7 +66,7 @@ def main(
66
settings.constant_sha = constant_sha
67
settings.allow_nested = allow_nested
68
69
- settings.git_dir = os.path.expanduser(git_dir)
+ settings.git_dir = pathlib.Path(os.path.expanduser(git_dir)).resolve()
70
if not settings.no_subdir:
71
settings.git_dir = os.path.join(settings.git_dir, settings.name)
72
git_dummy/util.py
@@ -18,7 +18,7 @@ def is_git_dir(path):
18
19
20
def is_inside_git_dir(path):
21
- while not is_dir_exist(path):
+ while path and not is_dir_exist(path):
22
try:
23
git.Repo(path, search_parent_directories=True)
24
return True
0 commit comments