From 050a462b2a835aa87a973ae1e229ba227fc24e54 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 8 Dec 2014 22:08:50 -0800 Subject: [PATCH] Fix git mod so that we switch to the desired version even if it was previously downloaded --- source_control/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source_control/git.py b/source_control/git.py index 766ba99bf28..7ac24804e77 100644 --- a/source_control/git.py +++ b/source_control/git.py @@ -672,8 +672,8 @@ def main(): repo_updated = True # switch to version specified regardless of whether - # we cloned or pulled - if repo_updated and not bare: + # we got new revisions from the repository + if not bare: switch_version(git_path, module, dest, remote, version) # Deal with submodules