IllegalStateException from Connection.openSession

Need to rethrow as `GitException`. Otherwise if you are using JGit and you select bad (or no) credentials for a remote repo, the _ERROR_ link expands to a monster nasty stack trace. With this patch, a simple one-line error is shown as expected.