On 1/6/2016 13:41, Duy Nguyen wrote:
I think the culprit is the "git remote add" line. "git clone --depth"
by default will fetch only one branch (aka --single-branch option in
git-clone). But I suspect when you add a new remote, the default
Now that you mention it I see this being documented
Hi,
I recently compared the results of doing
$ git clone --depth=1 https://github.com/git/git.git git-clone-depth-1
versus
$ mkdir git-fetch-depth-1
$ cd git-fetch-depth-1
$ git init
$ git remote add origin https://github.com/git/git.git
$ git fetch --depth=1
and
On Wed, Jan 6, 2016 at 7:30 PM, Sebastian Schuberth
wrote:
> Hi,
>
> I recently compared the results of doing
>
> $ git clone --depth=1 https://github.com/git/git.git git-clone-depth-1
>
> versus
>
> $ mkdir git-fetch-depth-1
> $ cd git-fetch-depth-1
> $ git
3 matches
Mail list logo