Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311902 - "Bare" Repositories should not return a working directory
Summary: "Bare" Repositories should not return a working directory
Status: CLOSED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 10:59 EDT by Mathias Kinzler CLA
Modified: 2010-06-18 10:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Kinzler CLA 2010-05-06 10:59:34 EDT
The "Repository" interface always returns a File on getWorkDir(); however, if the repository is configured as being "bare", this should either throw an Exception or simply return null.
Comment 1 Mathias Kinzler CLA 2010-06-14 05:04:55 EDT
Code Review on

http://egit.eclipse.org/r/#change,836
Comment 2 Mathias Kinzler CLA 2010-06-18 10:29:22 EDT
Merged as 3c51b35e03efc268dda087d9eec1596a35faee3a