From 165df51f6acc8d9c59a3c4f9476184697db76aec Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Fri, 25 Jan 2013 20:49:30 -0500 Subject: [PATCH] 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. --- git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git b/git index ad3da4fce16..7c1c5b3f40d 100644 --- a/git +++ b/git @@ -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']