Sha256: fa5ddc49d8d7c5b1fa69feea0b28a60d993598bb5e751a3de4330a460c9a1cd3

Contents?: true

Size: 513 Bytes

Versions: 14

Compression:

Stored size: 513 Bytes

Contents

---
# tasks file for qb/git/check/clean

- name: >
    Get git status for repo {{ git_root }}
  shell: git status --porcelain 2>/dev/null
  args:
    chdir: "{{ git_root }}"
  register: git_check_clean_status
  changed_when: false

- name: >
    Fail if the repo at {{ git_root }} has any untracked or modified files.
  fail:
    msg: >
      Repo at {{ git_root }} can not have any untracked or
      modified files, please commit or stash and retry.
  when: (git_check_clean_status.stdout_lines | length) != 0

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
qb-0.3.15 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.14 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.13 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.12 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.11 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.10 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.9 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.8 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.7 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.6 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.5 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.4 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.3 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.2 roles/qb/git/check/clean/tasks/main.yml