Fixed issue #774: Revert does not work for submodules