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

Bug 316804

Summary: Repository.openBlob returns null for existing ObjecId when repository was created using JGit
Product: [Technology] JGit Reporter: Dariusz Luksza <dariusz.luksza>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: stefan.lay
Version: 0.9.0   
Target Milestone: 0.9.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Dariusz Luksza CLA 2010-06-14 14:53:16 EDT
Build Identifier: 

While testing synchronization feature I've discovered that Repository.openBlob returns null for existing ObjectId when .git was created via EGit plugin. This situation does not occurs when git repository was initialized using c git.

Reproducible: Always

Steps to Reproduce:
1. Create a project
2. Share it using EGit
3. Add and commit files (commit should contains .project file ;)
4. The fallowing code should return null:

Tree tree = repository.mapTree("HEAD");
ObjectId objectId = tree2.findBlobMember(".project").getId();
repository.openBlob(objectId);

Same scenario works OK when repository was initialized and commit were made using c git.
Comment 1 Stefan Lay CLA 2010-08-27 05:30:11 EDT
Does this problem still exist?
Comment 2 Dariusz Luksza CLA 2010-08-27 19:10:42 EDT
I've test this on newest version of RGit and JGit and beside of API changes it look that this problem doesn't occur any more.