Re: Questions on passing --depth to git-clone vs. git-fetch

2016-01-06 Thread Sebastian Schuberth
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

Questions on passing --depth to git-clone vs. git-fetch

2016-01-06 Thread Sebastian Schuberth
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

Re: Questions on passing --depth to git-clone vs. git-fetch

2016-01-06 Thread Duy Nguyen
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