'Deepen' after "git clone --depth=1"?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

'Deepen' after "git clone --depth=1"?

From: Phil Miller <hidden>
Date: 2016-06-15 22:48:22

Suppose I want to make a shallow clone of a repository for some
size-sensitive application. I may later want to fill out the complete
history of that repository, so that I can work with it as if I had
done a full-depth clone to begin with. Is there an existing porcelain
command/option to produce that effect? If not, is there a fundamental
reason why this couldn't be implemented? It looks like this is
something fetch-pack should be able to do, but its documentation
doesn't seem to describe how. Also, the man page for fetch appears to
lie, in that --depth=n (where n is greater than the clone depth)
doesn't have any noticeable effect.

If the answer is simply "no one's written the code to do it yet", I'll
be happy to provide the necessary round tuits.

Phil

Re: 'Deepen' after "git clone --depth=1"?

From: Yuriy Kaminskiy <hidden>
Date: 2016-06-15 22:48:22

On 01.03.2010 06:55, Phil Miller wrote:
Suppose I want to make a shallow clone of a repository for some
size-sensitive application. I may later want to fill out the complete
history of that repository, so that I can work with it as if I had
done a full-depth clone to begin with. Is there an existing porcelain
command/option to produce that effect? If not, is there a fundamental
reason why this couldn't be implemented? It looks like this is
something fetch-pack should be able to do, but its documentation
doesn't seem to describe how. Also, the man page for fetch appears to
lie, in that --depth=n (where n is greater than the clone depth)
doesn't have any noticeable effect.
Last time I've tried (1.6.x),
   git fetch --depth=n
indeed, did nothing, but
   git fetch --depth=n origin master
worked (deepened history; but it seems it redownloaded (some) objects).
If the answer is simply "no one's written the code to do it yet", I'll
be happy to provide the necessary round tuits.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help