There was such a problem that the branches are generated not by an error from a wizard, but from previously existing branches.
I decided to insert a check on the parent branch in the pre-checkout and was surprised that there was no such hook. Post-checkout is, but pre is not.
The only way that I found is to write a wrapper over checkout, but I don’t have any idea how to implement it.
Has anyone encountered a similar situation or knows how to wrap a checkout wrapper?
Появилась такая проблема, что ветки по-ошибке создаются не из мастера
A very strange problem. Maybe you should solve it? Or do you develop branches from the current ones, and you want to create branches from the wizard? - strangeqargo