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:
Lorin Hochstein 2013-01-25 20:49:30 -05:00
parent 250a95cda9
commit 165df51f6a

2
git
View file

@ -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']
version = module.params['version']
remote = module.params['remote']