I agree, the Repository does need to know... (and if fact it does so that it can use NH in the correct mode) but it would still be easier to switch between session types if ISession and IStatelessSession both implemented an ICommonSession..... which considering they are both "sessions" would make sense.
IMO anyway.