ansible/ansible — pull request #951 by gottwald (2012-08-28 09:37:38+00:00)
Title: Added cwd to tempdir in git clone method. Fixes usage with sudo.

Without this patch git clone has a problem when it's used with sudo.

The git clone command needs write permission to the current directory.
Let's say you connect as userA and sudo to userB who has no write permission on the homedir of userA, then the command fails.

This patch just changes the working directory to the systems default directory which should be writable for everybody.

Regards

Ingo