Having spent 37 years in the OEM industry with GM and Chrysler, I've lived through the entire transition "on the inside", where all the work was done to get from carburetors and road draft tubes to today's incredibly clean-burning and efficient power-producers with computerized everything, and another new powertrain control technology being developed every month or two.
I think we'll all be taking dirt naps long before there's any significant shift from internal combustion gasoline and diesel engines to developmental technologies like hydrogen fuel cells, for several reasons:
1. The infrastructure is in place and fully-developed to get crude oil from the drilling rigs to refineries everywhere, and to get gasoline from the refineries to hundreds of thousands of gas stations everywhere; abandoning and replacing all that infrastructure would take decades, and would cost trillions of dollars.
2. A Hydrogen fuel cell technology powertrain costs about ten times what a gasoline powertrain does; the hydrogen fuel cell package to replace a $4,000 engine today costs about $40,000, just for the "engine".
3. Crude oil exists already - you just pump it out of the ground and refine it. Hydrogen doesn't exist - it has to be manufactured, and it takes far more energy to manufacture it than it can release when used as the donor element in a fuel cell.
4. You can store oil or gasoline anywhere, and carry it around in your car in a simple stamped steel tank that's as easy to make as a tin can. Hydrogen can either be stored as a liquid or as a gas; if it's liquid, it requires an insulated container that can maintain it at 250 degrees below zero. If it's in a gaseous state, the container must be able to withstand pressures of 10,000 pounds per square inch. Neither of these alternatives are very practical either for bulk storage (producing site, transport, pipeline, fueling station) or for the tank in your car.
There's no "magic bullet" - we've transformed the internal combustion engine into an incredibly fuel-efficient, clean, and inexpensive power source, and it isn't going to go away any time soon. The whiners grabbing for headlines who say hydrogen fuel cells are right around the corner haven't the faintest idea what they're talking about, and have no grasp whatsoever of reality. Even the wild-eyed weirdo California legislators haven't figured out yet that you can't write laws that defy basic physics.