The supernova-gamma-ray burst connection