Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316804 - Repository.openBlob returns null for existing ObjecId when repository was created using JGit
Summary: Repository.openBlob returns null for existing ObjecId when repository was cre...
Status: RESOLVED INVALID
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 14:53 EDT by Dariusz Luksza CLA
Modified: 2010-08-27 19:10 EDT (History)
1 user (show)

See Also:


Attachments

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