Re: git submodule add fails when using both --branch and --depth

2017-10-02 Thread Jonathan Nieder
Hi, Thadeus Fleming wrote: > I'm running git 2.14.2 on Ubuntu 16.04. > > Compare the behavior of > >> git clone --branch pu --depth 1 https://github.com/git/git git-pu > > which clones only the latest commit of the pu branch and Yes. >> mkdir tmp && cd tmp && git init >> git submodule add

Re: git submodule add fails when using both --branch and --depth

2017-10-02 Thread Stefan Beller
On Sat, Sep 30, 2017 at 10:20 AM, Thadeus Fleming wrote: > I'm running git 2.14.2 on Ubuntu 16.04. > > Compare the behavior of > >> git clone --branch pu --depth 1 https://github.com/git/git git-pu > > which clones only the latest commit of the pu branch and > >>

git submodule add fails when using both --branch and --depth

2017-09-30 Thread Thadeus Fleming
I'm running git 2.14.2 on Ubuntu 16.04. Compare the behavior of > git clone --branch pu --depth 1 https://github.com/git/git git-pu which clones only the latest commit of the pu branch and > mkdir tmp && cd tmp && git init > git submodule add --branch pu --depth 1 https://github.com/git/git \