Thread (7 messages) flat view 7 messages, 5 authors, 2016-06-15

Re: Does cloning a shallow repo require special setting in the cloned one?

From: Roy Lee <hidden>
Date: 2016-06-15 22:46:17

Possibly related (same subject, not in this thread)

On Thu, Feb 26, 2009 at 2:34 PM, Teemu Likonen [off-list ref] wrote:
On 2009-02-25 19:49 (-0800), roylee17 wrote:
quoted
$ git clone --depth 1 git-full git-shallow2
'git log' still gives a full history

Why can't I clone a shallow repo from the git-full?
Does it requires some settings in the git-full repo?
I don't know the "why" part but using file:// URL should work:

   git clone --depth 1 file:///path/to/git-full git-shallow2
Thanks, Teemu. file:///path/to/git-full works.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help