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.
This commit is contained in:
Tommi Virtanen 2007-11-17 16:49:53 +02:00
parent 13c89cdb7d
commit d85d60f73c

View file

@ -147,7 +147,7 @@ def export(git_dir, path):
returncode = subprocess.call( returncode = subprocess.call(
args=[ args=[
'git', 'git',
'--git-dir=%s' % git_dir, '--git-dir=%s' % os.path.abspath(git_dir),
'checkout-index', 'checkout-index',
'-a', '-a',
'-f', '-f',