diff options
author | 2007-11-17 16:49:53 +0200 | |
---|---|---|
committer | 2007-11-17 16:49:53 +0200 | |
commit | d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7 (patch) | |
tree | 7639a4a02e3093e829c1b539c69478a0868c39d6 | |
parent | Manage git-daemon-export-ok flags from gitosis config. (diff) | |
download | gitosis-gentoo-d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7.tar.gz gitosis-gentoo-d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7.tar.bz2 gitosis-gentoo-d85d60f73c765a7ff8c8b060cd40e2d1ce4a44c7.zip |
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.py | 2 |
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', |