Open
Description
There are two common mistakes that are comparably easy to make and have significant consequences.
- Submodule was updated by mistake.
- Submodule was updated to a wrong commit that is not in master branch of the submodule.
It would be great if checkpatch could find those mistakes.
- Let's introduce a special commit message tag, that shows that submodule update was intended. Something like "UPDATE_SUBMODULE=". Don't allow commits with submodule update without appropriate commit message tags.
- Let's check that submodule commit is in master tree. Perhaps it can be done as in
tarantool/tools/check_push_master.sh
, it should be investigated. And perhaps having done that,check_push_master.sh
must be removed.