Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332988 - Failed to work with repository partial history.
Summary: Failed to work with repository partial history.
Status: CLOSED DUPLICATE of bug 301627
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 19:17 EST by rmazurak CLA
Modified: 2010-12-20 19:29 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***