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:
parent
13c89cdb7d
commit
d85d60f73c
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue