From d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sat, 17 Nov 2007 16:49:53 +0200 Subject: Make repository.export work even with relative git_dir. It changes the current directory, so it can't set --git-dir to a (potentially) relative path. Make path absolute before using it. This should fix post-update hook problems. --- gitosis/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitosis/repository.py b/gitosis/repository.py index 4b7ff2b..07e657d 100644 --- a/gitosis/repository.py +++ b/gitosis/repository.py @@ -147,7 +147,7 @@ def export(git_dir, path): returncode = subprocess.call( args=[ 'git', - '--git-dir=%s' % git_dir, + '--git-dir=%s' % os.path.abspath(git_dir), 'checkout-index', '-a', '-f', -- cgit v1.2.3-65-gdbad