If you prop swing an aircraft with a dead battery there's no guarantee the battery will charge with either an alternator or a generator.
In this situation very often the battery solenoid will not operate and the battery will not be connected to the aircraft electrical system. The generator or alternator will most likely run all the electrical systems but there will be no charge going to the battery.
The same can apply even when starting with a battery cart if the battery is dead flat.