We call RefUtil.verifyConnected first which already parses the commit. If there is an IncorrectObjectTypeException it is wrapped in an InvalidRevisionException here. Hence we cannot hit IncorrectObjectTypeException at a later point in the code path. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: If3e0a715e570a446315be7c9d2eb3b7b7c8b3cd3