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

Bug 366243

Summary: JGit ignores error on stdout
Product: [Technology] JGit Reporter: Robin Rosenberg <robin.rosenberg>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: 1.2   
Target Milestone: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 369461    

Description Robin Rosenberg CLA 2011-12-09 14:37:45 EST
If an error occurs on stdout, e.g. device full, JGit will not notice and happily 
exit with 0. This is because it uses a PrintWriter and does not check it's status.

JGit should exit with a non-zero exit code, possibly as soon as the error occurs.
Comment 1 Robin Rosenberg CLA 2012-04-25 19:28:31 EDT
Fixing this would probably require an API change, e.g. not using PrintWriter for out.
Comment 2 Robin Rosenberg CLA 2013-02-08 01:48:17 EST
Fix a while ago in caa362f20df1169e4a677648dce2af29d63cbcec