Although not recommended, GitHub Enterprise can be set up over HTTP. In this case, opening the commit/file URL will not work if the protocol is set as HTTPS. The opposite is true though: opening a URL using HTTP where it's meant to be open via HTTPS will automatically resolve to HTTPS in most modern browsers.