mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Git module: fix for relative paths
If a relative path is passed as an argument, this change first converts it to an absolute path. This fixes a bug where the git module would attempt to chdir into an invalid directory because of multiple chdir calls against a relative path.
This commit is contained in:
parent
4d71b31f7e
commit
c337b64e35
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ def main():
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
dest = os.path.expanduser(module.params['dest'])
|
dest = os.path.abspath(os.path.expanduser(module.params['dest']))
|
||||||
repo = module.params['repo']
|
repo = module.params['repo']
|
||||||
version = module.params['version']
|
version = module.params['version']
|
||||||
remote = module.params['remote']
|
remote = module.params['remote']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue