Urls are not generated properly for submodules

Fetch the toplevel directory of the repo from git so urls are handled properly when checking history for submodules