aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/resources/org/eclipse
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2019-08-01 21:04:31 +0200
committerThomas Wolf <thomas.wolf@paranor.ch>2019-08-26 22:48:41 +0200
commitbdd6cf74cfe60766500e90bc67e9a15a0c52c89a (patch)
tree7f785ddf20764d85c18dc91e6758f5612a1bb124 /org.eclipse.jgit.pgm/resources/org/eclipse
parentcb208fb3ca130a2241bef3f3a33d54269d3a14ba (diff)
downloadjgit-bdd6cf74cfe60766500e90bc67e9a15a0c52c89a.tar.gz
jgit-bdd6cf74cfe60766500e90bc67e9a15a0c52c89a.zip
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>
Diffstat (limited to 'org.eclipse.jgit.pgm/resources/org/eclipse')
-rw-r--r--org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties b/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
index 2a5a31eba8..b2ec57c749 100644
--- a/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
+++ b/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
@@ -155,6 +155,8 @@ needSingleRevision=Needed a single revision
noGitRepositoryConfigured=No Git repository configured.
noNamesFound=No names found, cannot describe anything.
noSuchFile=no such file: {0}
+noSuchPathInRef=no such path ''{0}'' in {1}
+noSuchRef=no such ref: {0}
noSuchRemoteRef=no such remote ref: ''{0}''
noSystemConsoleAvailable=No System.console available
noTREESectionInIndex=no 'TREE' section in index