]> source.dussan.org Git - jgit.git/commit
JGit pgm: make Blame more robust against bogus input 30/146930/3
authorThomas Wolf <thomas.wolf@paranor.ch>
Thu, 1 Aug 2019 19:04:31 +0000 (21:04 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Mon, 26 Aug 2019 20:48:41 +0000 (22:48 +0200)
commitbdd6cf74cfe60766500e90bc67e9a15a0c52c89a
tree7f785ddf20764d85c18dc91e6758f5612a1bb124
parentcb208fb3ca130a2241bef3f3a33d54269d3a14ba
JGit pgm: make Blame more robust against bogus input

Make the command die with proper messages when the revision
cannot be resolved or the file doesn't exist in the repository.
Previously the command would throw NPEs in these cases.

Bug: 490798
Change-Id: Ia457347aa22cf6bd2c2b6e7b9d705a66b3826307
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/BlameTest.java [new file with mode: 0644]
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Blame.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/internal/CLIText.java