community.general/lib/ansible/modules/source_control
Andrew Widdersheim 7d174daa77 Fix detached head detection in is_not_a_branch()
Detached head detection seems to have broken somewhere a long the way
because git decided to change how that situation looks when doing a 'git
branch -a' which is performed by get_branches().

This is how git 1.7.1 displays this situation (which works):

shell> git branch -a
* (no branch)
  master

This is the output from git 1.8.3.1 (which does not work):

shell> git branch -a
* (detached from e132711)
  master

It looks like this same wording is used in the most recent version of
git (2.6.1 as of writing this).
2016-12-08 11:23:39 -05:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
git.py Fix detached head detection in is_not_a_branch() 2016-12-08 11:23:39 -05:00
hg.py Add support for 'update' parameter to hg module 2016-12-08 11:23:24 -05:00
subversion.py version_added for switch Parameter changed to 2.0 Add comment to explain check_rc Parameter in _exec Function Optimize code and clean up is_svn_repo Function 2016-12-08 11:23:29 -05:00