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