Thanks, I stand corrected. How does this play with third-party contributions? Others might be the copyright-holders of a sub-section of the code.
You ask contributors to sign a copyright assignment before accepting their changes.
Projects can have a Contributor License Agreement (CLA). It gives the owner of the project a right to republish (or copyright) the contributions. You can't contribute to the project without signing it.
This might also prevent a lot of people from contributing due to the added paperwork.