summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2014-11-25 16:03:52 -0800
committerJames Cammarata <jimi@sngx.net>2014-11-26 21:19:43 -0600
commitba868f5980e435c518d1bdfd557a22cc7e74f31a (patch)
treecb9176a68ef7dc181df73f16a39fcc7cf676ff74
parent8449b7f5fae329fe914df1f417ce8a5e9a485e9a (diff)
downloadansible-modules-core-ba868f5980e435c518d1bdfd557a22cc7e74f31a.tar.gz
Fix cornercase tracebaxk when detecting whether submodules changed
-rw-r--r--source_control/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source_control/git.py b/source_control/git.py
index 17378fc9..06768744 100644
--- a/source_control/git.py
+++ b/source_control/git.py
@@ -688,6 +688,7 @@ def main():
switch_version(git_path, module, dest, remote, version, recursive, track_submodules)
# Deal with submodules
+ submodules_updated = False
if recursive and not bare:
submodules_updated = submodules_fetch(git_path, module, remote, track_submodules, dest)
@@ -707,7 +708,7 @@ def main():
changed = False
if before != after or local_mods:
changed = True
- elif recursive and submodules_updated:
+ elif submodules_updated:
changed =True
# cleanup the wrapper script