|
@@ -17,6 +17,19 @@ function parse_git_dirty() {
|
|
|
if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" == "true" ]]; then
|
|
|
FLAGS+='--untracked-files=no'
|
|
|
fi
|
|
|
+ case "$GIT_STATUS_IGNORE_SUBMODULES" in
|
|
|
+ "")
|
|
|
+ # if unset: ignore dirty submodules
|
|
|
+ FLAGS+="--ignore-submodules=dirty"
|
|
|
+ ;;
|
|
|
+ "git")
|
|
|
+ # let git decide (this respects per-repo config in .gitmodules)
|
|
|
+ ;;
|
|
|
+ *)
|
|
|
+ # other values are passed to --ignore-submodules
|
|
|
+ FLAGS+="--ignore-submodules=$GIT_STATUS_IGNORE_SUBMODULES"
|
|
|
+ ;;
|
|
|
+ esac
|
|
|
STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1)
|
|
|
fi
|
|
|
if [[ -n $STATUS ]]; then
|