Sha256: fe8ce72c28ee2b2197e885650342df57a1013147fead2736f99bc66ae26d8c42
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 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 | 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qb-0.4.5 | roles/qb/git/check/clean/tasks/main.yml |
qb-0.4.4 | roles/qb/git/check/clean/tasks/main.yml |