summaryrefslogtreecommitdiff
path: root/pbr/packaging.py
diff options
context:
space:
mode:
Diffstat (limited to 'pbr/packaging.py')
-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):