summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/versioneer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/versioneer.py b/common/versioneer.py
index 7ed2a21d..58339251 100644
--- a/common/versioneer.py
+++ b/common/versioneer.py
@@ -680,7 +680,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
expanded, and _version.py hasn't already been rewritten with a short
version string, meaning we're inside a checked out source tree.
"""
- if not os.path.exists(os.path.join(root, ".git")):
+ if not os.path.exists(os.path.join(root, "..", ".git")):
if verbose:
print("no .git in %%s" %% root)
raise NotThisMethod("no .git directory")
@@ -1048,7 +1048,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
expanded, and _version.py hasn't already been rewritten with a short
version string, meaning we're inside a checked out source tree.
"""
- if not os.path.exists(os.path.join(root, ".git")):
+ if not os.path.exists(os.path.join(root, "..", ".git")):
if verbose:
print("no .git in %s" % root)
raise NotThisMethod("no .git directory")