Re: Questions on passing --depth to git-clone vs. git-fetch
- From
Sebastian Schuberth <sschuberth@gmail.com>
- Date
- Jan 6, 2016, 13:04 UTC
- Message-ID
- <568D10D6.7020707@gmail.com>
- In-Reply-To
- <CACsJy8D5DeDOCd1tn876s3+2fBR6e-X1UANkAeiw8tzAeDcDng@mail.gmail.com>
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 as part of --single-branch instead of --depth, which I think is confusing. I'll send a patch.
-- Sebastian Schuberth