mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix #91: Expand user home folder for the key_file path of the git module
This commit is contained in:
committed by
Matt Clay
parent
262624ca12
commit
c52bfe3e35
@@ -625,6 +625,10 @@ def main():
|
|||||||
else:
|
else:
|
||||||
gitconfig = os.path.join(dest, '.git', 'config')
|
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
|
# create a wrapper script and export
|
||||||
# GIT_SSH=<path> as an environment variable
|
# GIT_SSH=<path> as an environment variable
|
||||||
# for git to use the wrapper script
|
# for git to use the wrapper script
|
||||||
|
|||||||
Reference in New Issue
Block a user