only commit submodule if changes have been done