Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332988

Summary: Failed to work with repository partial history.
Product: [Technology] EGit Reporter: rmazurak
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: caniszczyk, rmazurak, sop
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description rmazurak CLA 2010-12-20 19:17:26 EST
Build Identifier: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7

I cloned repository with partial history using this command:
git clone --depth 2 "url"

After this I can't view history ("Cannot compute Git history. Missing commit ...."), pull.

Reproducible: Always

Steps to Reproduce:
1. Clone part of repository :
  git clone --depth 2 "url"
2. Try view history, pull, compare with.
Comment 1 Chris Aniszczyk CLA 2010-12-20 19:22:19 EST
Thoughts on this Shawn?

I know that JGit doesn't support shallow clones yet [1].

[1] - http://egit.eclipse.org/r/#change,1320
Comment 2 Shawn Pearce CLA 2010-12-20 19:25:29 EST
Yup.  This is because JGit's revision walker doesn't know where the shallow boundary is, and is crashing when it tries to walk a commit that wasn't actually downloaded by this clone.
Comment 3 Chris Aniszczyk CLA 2010-12-20 19:29:11 EST
I'm going to dupe this to bug 301627.

We have some code towards implementing shallow clones but aren't there yet.

*** This bug has been marked as a duplicate of bug 301627 ***