CO2 emissions is coupled to
fossil fuels, not necessarily gasoline, if you're talking about renewably-generated gasoline (say from biofuels, though I suspect biodiesel is more likely). And if you're getting hydrogen (an energy storage medium, not an energy
source, and an awfully low-density one to boot on a volumetric basis, with significant storage and transport issues) from fossil-fuel generated electricity, you've mostly just transported the CO2 emissions problem (modulo carbon sequestering, which is presently and likely forever highly uneconomic).
I address issues of alternate fuels in a prior post, and suspect we'll see liquid hydrocarbons, of some stripe, for quite some time.
http://news.ycombinator.com/item?id=5204104
Edit: speling