community.general/lib/ansible/modules/source_control
Robin Roth afca957396 Fix UnboundLocalError remote_head in git (#19057)
* Fix UnboundLocalError remote_head in git

Fixes #5505

The use of remote_head was a leftover of #4562.
remote_head is not necessary, since the repo is unchanged anyway and
after is set correctly.

Further changes:
* Set changed=True and msg once local_mods are detected and reset.
* Remove need_fetch that is always True (due to previous if) to improve
clarity
* Don't exit early for local_mods but run submodules update and
switch_version

* Add test for git with local modifications
2016-12-14 08:36:15 -08:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
bzr.py Remove unneeded quotes - source_control/bzr.py (#18825) 2016-12-09 08:48:15 -05:00
git.py Fix UnboundLocalError remote_head in git (#19057) 2016-12-14 08:36:15 -08:00
git_config.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
github_hooks.py Remove unused quotes - source_control/github_hooks.py (#19159) 2016-12-10 09:23:19 -05:00
github_key.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
github_release.py Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
gitlab_group.py Native YAML - source_control/gitlab_group (#19054) 2016-12-09 05:48:33 -05:00
gitlab_project.py Native YAML - source_control/gitlab_project (#19062) 2016-12-09 05:44:43 -05:00
gitlab_user.py Native YAML - source_control/gitlab_user (#19053) 2016-12-09 05:49:00 -05:00
hg.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00
subversion.py Refreshed metadata for core modules 2016-12-08 11:25:35 -05:00