Sha256: 395fbcff19a11688818e301970a91758aa5f75fc4b2efce5d2883be6e37d5fc4

Contents?: true

Size: 831 Bytes

Versions: 14

Compression:

Stored size: 831 Bytes

Contents

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

- path_facts:
    path: >-
      {{ git_root }}
  register: git_root_facts

- set_fact:
    git_check_is_clean: >-
      {{
        git_root_facts.git
          | qb_send( 'clean?', ignore=git_check_clean_ignore )
      }}

# - name: >
#     Get git status for repo {{ git_root }}
#   shell: >-
#     git status
#     {% if git_check_clean_ignore_submodules %}
#       --ignore-submodules
#     {% endif %}
#     --porcelain 2>/dev/null
#   args:
#     chdir: "{{ git_root }}"
#   register: git_check_clean_status
#   changed_when: false

- when: not git_check_is_clean
  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.

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
qb-0.4.3 roles/qb/git/check/clean/tasks/main.yml
qb-0.4.2 roles/qb/git/check/clean/tasks/main.yml
qb-0.4.1 roles/qb/git/check/clean/tasks/main.yml
qb-0.4.0 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.25 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.24 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.23 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.22 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.21 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.20 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.19 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.18 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.17 roles/qb/git/check/clean/tasks/main.yml
qb-0.3.16 roles/qb/git/check/clean/tasks/main.yml