How to ignore "dirty" git submodules

Edit .gitmodules and add ignore = dirty to all modules where you want to ignore the -dirty state.

Example:

[submodule "themes/tailbliss"]
        path = themes/tailbliss
        url = https://github.com/ulikoehler/tailbliss.git
        ignore = dirty