Out of the ditch and on the bus

I've been using the phrase "Out of the ditch and on the bus" for years. My interpitation has always been "think" - like "wake up and smell the coffee". Howevwer I'm not sure that this is correct. Also not sure the origin. Anyone know?