| Summary: | [server] NPE on unstage in a new repository | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> |
| Component: | Git | Assignee: | Project Inbox <orion.git-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | simon_kaegi, Szymon.Brandys, tomasz.zarna |
| Version: | 0.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | 339610 | ||
| Bug Blocks: | |||
|
Description
John Arthorne
I have entered bug 339610 against JGit. As a workaround, Tomasz suggested we do an initial commit for free when creating the repository: File root = new File(new File(location), Constants.DOT_GIT); FileRepository repo = new FileRepository(root); repo.create(); Git git = new Git(repo); git.add().addFilepattern(".").call(); git.commit().setMessage("Initial commit").call(); Simon and I discussed this yesterday and decided to go ahead with the workaround. I'm leaving this open so we can remove this when the JGit bug is fixed. Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |