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
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
commit 7af2d3f5f7

@ -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

Loading…
Cancel
Save