[#5785] ticket:277 Skip submodules when computing git trees