aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2007-11-17 16:49:53 +0200
committerTommi Virtanen <tv@eagain.net>2007-11-17 16:49:53 +0200
commitd85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7 (patch)
tree7639a4a02e3093e829c1b539c69478a0868c39d6
parentManage git-daemon-export-ok flags from gitosis config. (diff)
downloadgitosis-gentoo-d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7.zip
gitosis-gentoo-d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7.tar.gz
gitosis-gentoo-d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7.tar.bz2
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.
-rw-r--r--gitosis/repository.py2
1 files changed, 1 insertions, 1 deletions
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',