From: Roy Lee Date: Thu, 26 Feb 2009 07:33:30 GMT Subject: Re: Does cloning a shallow repo require special setting in the cloned one? Message-ID: <6eac7f470902252333x6326419bq305da3436cff3aa7@mail.gmail.com> In-Reply-To: <87tz6hn1tg.fsf@iki.fi> On Thu, Feb 26, 2009 at 2:34 PM, Teemu Likonen wrote: > On 2009-02-25 19:49 (-0800), roylee17 wrote: > >> $ 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.