diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2011-08-16 15:15:01 +0200 |
---|---|---|
committer | Chris Aniszczyk <zx@twitter.com> | 2011-08-21 14:11:00 -0700 |
commit | 930875a81a690f732fb5ac26304d6fb212aa2582 (patch) | |
tree | 1aaff8a6cd9b28c00415303837776dfe219d92ce /org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java | |
parent | 9952223e0645fd7a8cddc6093a7f449c6390238d (diff) | |
download | jgit-930875a81a690f732fb5ac26304d6fb212aa2582.tar.gz jgit-930875a81a690f732fb5ac26304d6fb212aa2582.zip |
Throw JGit exception when ResetCommand got wrong ref
If the ResetCommand should reset to a invalid ref (e.g. HEAD in a repo
whithout a single commit) it was throwing an NPE. This is fixed now by
throwing a JGitInternalExcpeption. It would be nicer if we could throw
a InvalidRefException, but this would modify our API.
Bug: 339610
Change-Id: Iffcb4f2cca9f702176471d93c3a71e5cb3e700b1
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java')
0 files changed, 0 insertions, 0 deletions