Adding optional support of --depth for github only.