Merge pull request #92 from astorije/expand_user_git_key_file

Expand the user home folder in the key_file argument of the git module
This commit is contained in:
Toshio Kuratomi 2014-12-15 13:38:18 -08:00
commit 7af2d3f5f7

View file

@ -611,6 +611,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