When hash_paths is used to enumerate files, git submodules will happily list the folder as the file. Then hash_paths attempts to hash a folder, which fails. This means that if you attempt to use hash_paths on a folder containing a git submodule, it will fail with a runtime error.