My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3351: off-by-one depth calculation in shallow clone
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by Martin.W...@gmail.com, May 5, 2015
Affected Version:
2.11

What steps will reproduce the problem?
1. git clone --depth=1 <gerrit-url> shallow
2. cd shallow
3. git log

What is the expected output? What do you see instead?
A shallow clone with --depth=1 should only contain one commit.
However, the clone from Gerrit also contains the parents.

Please provide any additional information below.
This off-by-one was also in Git but was fixed in v1.8.2-rc0~72^2~1.
Sign in to add a comment

Powered by Google Project Hosting