GetCompoents/git stalls when cloneing a repository with only a single commit

Create issue
Issue #776 closed
Roland Haas created an issue

this happens for an up-to-date GetComponent and git version 1.7.8

A simple fix is to change --depth from 1 to 0 in GetComponents. It still checks out one commit.


Comments (5)

  1. Frank Löffler
    • changed status to open
    • removed comment

    This does not work. --depth=0 will clone the whole repository. It means 'unlimited' depth, as if --depth was not given at all.

  2. Roland Haas reporter
    • removed comment

    oh. That would explain why it would check out substepoutput of course. I just checked a bit more carefully and my claim that substepoutput contains only a single commit is incorrect (there are 4 commits). So that bug report should be updated to:

    git clone --depth=1 stalls (and using the "git" protocoll requires a public key apparently). This might just be an issue with bitbucket then, since shallow checkouts for carpet/git used to work (and those for MacLachlan do still work it seems)

    It is however possible to clone the full repository (either depth=0 or no depth at all).

    Sorry for the confusion.

  3. Log in to comment