summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-20 16:21:43 +0000
committerGerrit Code Review <review@openstack.org>2018-12-20 16:21:43 +0000
commit35d10a9fdc988013f39d6ca46af6651699745b0d (patch)
treea01345d6e9a63b7f2c62a0531bcbb739d1141513
parenta97822dbff89822db60940652f6f64d3c5ab83e6 (diff)
parent91bef675d49f08a8ab208d1516070df127153f07 (diff)
Merge "mirror-workspace-git-repos: Explicitly show HEAD of checked out branches"
-rw-r--r--roles/mirror-workspace-git-repos/tasks/main.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/mirror-workspace-git-repos/tasks/main.yaml b/roles/mirror-workspace-git-repos/tasks/main.yaml
index c3baae7..3cd81bf 100644
--- a/roles/mirror-workspace-git-repos/tasks/main.yaml
+++ b/roles/mirror-workspace-git-repos/tasks/main.yaml
@@ -33,6 +33,9 @@
33 git config --local --unset receive.denyCurrentBranch 33 git config --local --unset receive.denyCurrentBranch
34 # checkout the branch matching the branch set up by the executor 34 # checkout the branch matching the branch set up by the executor
35 git checkout {{ item.value.checkout }} 35 git checkout {{ item.value.checkout }}
36 # put out a status line with the current HEAD
37 echo "{{ item.value.canonical_name }} checked out to:"
38 git log --pretty=oneline -1
36 args: 39 args:
37 chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}" 40 chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
38 with_dict: "{{ zuul.projects }}" 41 with_dict: "{{ zuul.projects }}"