Commit c337b64e by Lorin Hochstein

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.
parent 4d71b31f
...@@ -225,7 +225,7 @@ def main(): ...@@ -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']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment