summaryrefslogtreecommitdiff
path: root/common/versioneer.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-04-01 17:47:40 -0400
committerKali Kaneko <kali@leap.se>2016-04-01 17:47:40 -0400
commit71b7fe430fea770b29e67dc5730a7c53afa2e6f6 (patch)
tree0d58cc1656645749c6eeacface3442ebf953b8fc /common/versioneer.py
parent61b31f4e65f80d159831ace42b45812ba6beb995 (diff)
patch for multi-pkg repo
Diffstat (limited to 'common/versioneer.py')
-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")