On Thu, 12 Apr 2012 23:32:03 -0700, Thomas Gries <[email protected]> wrote:
For test purposes I wanted to clone the last commit only by using the --depth option as in /work/tmp/ # git clone --depth=10 https://gerrit.wikimedia.org/r/p/mediawiki/core.git and got this error message: Initialized empty Git repository in /work/tmp/core/.git/ *error: RPC failed; result=22, HTTP code = 500* My git client version is 1.7.1 Any idea why ?
I already tried that myself awhile ago. Judging by the fact that I get that on Gerrit but it works when --depth from my mediawiki-core on GitHub; Gerrit's faux SSH git hack doesn't implement whatever is necessary for git to do --depth.
By the way, using --depth only saves you disk space (which is a trivially small amount, which linked repositories can cut back on as well). When you use --depth git still needs to go through the whole history. So whether you are using everything or try to limit by --depth it still takes the same amount of time to do an initial clone.
-- ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name] _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
