Merge "mirror-workspace-git-repos: Explicitly show HEAD of checked out branches"
This commit is contained in:
commit
35d10a9fdc
@ -33,6 +33,9 @@
|
|||||||
git config --local --unset receive.denyCurrentBranch
|
git config --local --unset receive.denyCurrentBranch
|
||||||
# checkout the branch matching the branch set up by the executor
|
# checkout the branch matching the branch set up by the executor
|
||||||
git checkout {{ item.value.checkout }}
|
git checkout {{ item.value.checkout }}
|
||||||
|
# put out a status line with the current HEAD
|
||||||
|
echo "{{ item.value.canonical_name }} checked out to:"
|
||||||
|
git log --pretty=oneline -1
|
||||||
args:
|
args:
|
||||||
chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
|
chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
|
||||||
with_dict: "{{ zuul.projects }}"
|
with_dict: "{{ zuul.projects }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user