From c337b64e35f6866d7a3660eda6b0850c65d939d2 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. --- library/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/git b/library/git index ad3da4fce16..7c1c5b3f40d 100644 --- a/library/git +++ b/library/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']