Revert "prevent deletion of self branch"

This reverts commit 1a54f8426f5510870a5f4226bbc6434578f95f95.