Like I said, I see why people ask for it. If the benefit to you of getting that information is worth the risk of potentially making a bad impression then go for it.
If someone like you has a bad impression of me even though you understand why I'm asking, then I guess it's a bullet dodged.
I should say that I understand if a company cannot show me their codebase, it is just one thing to consider among many.