summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-03-29 00:31:58 +0100
committerMonty Taylor <mordred@inaugust.com>2013-03-29 00:31:58 +0100
commit79d5a6cc7d9072a28fbd990be9f1a9fd9d660cfd (patch)
treec5e3f332e5a721f1184503c26bd78a37d783aacb
parentd0b083d28f3299c163058ea27b47654bd40c5e8a (diff)
downloadpbr-79d5a6cc7d9072a28fbd990be9f1a9fd9d660cfd.tar.gz
Using __file__ was getting the wrong location.0.5.6
__file__ is relative to pbr itself inside of a remote pip build. Change-Id: I76215abadc8a1a95f5e82680593a856e71d262ec
-rw-r--r--pbr/packaging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index ed4c73b..e3e7409 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -136,7 +136,7 @@ def _run_shell_command(cmd, throw_on_error=False):
def _get_git_directory():
- parent_dir = os.path.dirname(__file__)
+ parent_dir = os.path.dirname(os.curdir)
while True:
git_dir = os.path.join(parent_dir, '.git')
if os.path.exists(git_dir):