ansible/ansible — pull request #1557 by sfromm (2012-11-08 01:20:43+00:00)
Title: Updates to git module: use git-fetch and other changes

This is a continuation of issue #1412. Among other things, this does:

* Adds _run() to handle the various calls to git from one place
* Drop use of git-pull for get-fetch. This renames pull() to fetch().
* Use remote name if supplied when cloning remote repository
* Update logic in get_head_branch() to better detect branch associated with HEAD.

While I've tested this extensively, it is possible some bug(s) remain in some really strange corner cases. This would likely be somewhere in the space of changing the value of the argument *version* from a tag/branch/HEAD to one of the other valid values.