#776: GetCompoents/git stalls when cloneing a repository with only a single commit ---------------------------+------------------------------------------------ Reporter: rhaas | Owner: eric9 Type: defect | Status: new Priority: major | Milestone: Component: GetComponents | Version: Keywords: | ---------------------------+------------------------------------------------ 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.
#776: GetCompoents/git stalls when cloneing a repository with only a single commit ----------------------------+----------------------------------------------- Reporter: rhaas | Owner: eric9 Type: defect | Status: review Priority: major | Milestone: Component: GetComponents | Version: Resolution: | Keywords: ----------------------------+----------------------------------------------- Changes (by rhaas):
* status: new => review
#776: GetCompoents/git stalls when cloneing a repository with only a single commit ----------------------------+----------------------------------------------- Reporter: rhaas | Owner: eric9 Type: defect | Status: reopened Priority: major | Milestone: Component: GetComponents | Version: Resolution: | Keywords: ----------------------------+----------------------------------------------- Changes (by knarf):
* status: review => reopened
Comment:
This does not work. --depth=0 will clone the whole repository. It means 'unlimited' depth, as if --depth was not given at all.
#776: GetCompoents/git stalls when cloneing a repository with only a single commit ----------------------------+----------------------------------------------- Reporter: rhaas | Owner: eric9 Type: defect | Status: reopened Priority: major | Milestone: Component: GetComponents | Version: Resolution: | Keywords: ----------------------------+-----------------------------------------------
Comment (by rhaas):
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.
#776: GetCompoents/git stalls when cloneing a repository with only a single commit ----------------------------+----------------------------------------------- Reporter: rhaas | Owner: eric9 Type: defect | Status: closed Priority: major | Milestone: Component: GetComponents | Version: Resolution: worksforme | Keywords: ----------------------------+----------------------------------------------- Changes (by rhaas):
* status: reopened => closed * resolution: => worksforme
Comment:
I can no longer reproduce the problem and the suggested patch was wrong anyway.
trac@lists.einsteintoolkit.org