Browse Source

Merge "mirror-workspace-git-repos: Explicitly show HEAD of checked out branches"

changes/34/627534/1
Zuul 6 months ago
parent
commit
35d10a9fdc
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      roles/mirror-workspace-git-repos/tasks/main.yaml

+ 3
- 0
roles/mirror-workspace-git-repos/tasks/main.yaml View File

@@ -33,6 +33,9 @@
33 33
     git config --local --unset receive.denyCurrentBranch
34 34
     # checkout the branch matching the branch set up by the executor
35 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 39
   args:
37 40
     chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
38 41
   with_dict: "{{ zuul.projects }}"

Loading…
Cancel
Save