Fix #91: Expand user home folder for the key_file path of the git module
This commit is contained in:
parent
db5668b84c
commit
1e9680aa6b
1 changed files with 4 additions and 0 deletions
|
@ -518,6 +518,10 @@ def main():
|
|||
else:
|
||||
gitconfig = os.path.join(dest, '.git', 'config')
|
||||
|
||||
# make sure the key_file path is expanded for ~ and $HOME
|
||||
if key_file is not None:
|
||||
key_file = os.path.abspath(os.path.expanduser(key_file))
|
||||
|
||||
# create a wrapper script and export
|
||||
# GIT_SSH=<path> as an environment variable
|
||||
# for git to use the wrapper script
|
||||
|
|
Loading…
Reference in a new issue