Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion playbooks/roles/git_clone/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
- name: Check that working tree is clean
shell: test ! -e "{{ item }}" || git -C "{{ item }}" status --porcelain --untracked-files=no
register: dirty_files
become_user: "{{ repo_owner }}"
# Using the map here means that the items will only be the DESTINATION strings,
# rather than the full GIT_REPOS structures, which have data we don't want to log,
# so we don't have to use no_log on this task.
Expand Down Expand Up @@ -113,7 +114,7 @@

- name: Run git clean after checking out code
shell: cd {{ item.DESTINATION }} && git clean -xdf
become: true
become_user: "{{ repo_owner }}"
with_items: "{{ GIT_REPOS }}"
no_log: "{{ GIT_CLONE_NO_LOGGING }}"
tags:
Expand Down