Rescue Java::OrgEclipseJgitErrors::RevisionSyntaxException in repo#commit(ref) if ref is malformed and cannot be resolved by JGit. Raises a NoSuchShaFound exception instead.