Add --depth support in the git module