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