From 7e75407b1cb3505c8b46cbbfea125a0a34d460f7 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Wed, 13 May 2015 13:01:16 +0200 Subject: [PATCH] Add refs/heads to git show-ref command --- .../deploy_system_config/tasks/clone_system_config_locally.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/deploy_system_config/tasks/clone_system_config_locally.yml b/roles/deploy_system_config/tasks/clone_system_config_locally.yml index e3405cf..c858bfc 100644 --- a/roles/deploy_system_config/tasks/clone_system_config_locally.yml +++ b/roles/deploy_system_config/tasks/clone_system_config_locally.yml @@ -12,7 +12,7 @@ chdir: /tmp/infra-ansible/system-config/production register: checked_out_branch -- command: git show-ref --verify --quiet "{{ system_config_branch }}" +- command: git show-ref --verify --quiet refs/heads/"{{ system_config_branch }}" args: chdir: /tmp/infra-ansible/system-config/production register: system_config_branch_exists