- changed status to open
- removed comment
GetCompoents/git stalls when cloneing a repository with only a single commit
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.
Keyword:
Comments (5)
-
reporter -
- 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.
-
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 https://bitbucket.org/ianhinder/substepoutput.git 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.
-
reporter - changed status to resolved
- removed comment
I can no longer reproduce the problem and the suggested patch was wrong anyway.
-
reporter - changed status to closed
- edited description
- Log in to comment
also: I cannot commit this myself.