Exit if any git call fails.