Re: "git clone --depth <depth>" producing history with <depth + 1> commits?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 2, 2009, 01:04 UTC
- Message-ID
- <alpine.DEB.1.00.0904020303320.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <49D3C300.1040303@hartwork.org>
Hi,
On Wed, 1 Apr 2009, Sebastian Pipping wrote:
Show 8 quoted lines
> Sebastian Pipping wrote: > > Is "git clone --depth 1 <ropository>" expected to give a history > > with 2 commits? "--depth 2" gives 3 commits, "--depth 0" all. > > > > Is that by design or a bug? > > Anyone? Is "git clone --depth 1 <ropository>" really supposed to > produce a history holding _two_ commits? Why so?
Because storing _no_ commit (according to you, that should happen with --depth=0) would make no sense?
After all, if you want to clone, you want to clone at least _something_.
Ciao, Dscho