[PATCH 0/1] [RFC][GSoC] submodule: enforcing stricter checks
- From
Shourya Shukla <shouryashukla.oo@gmail.com>
- Date
- Feb 11, 2020, 17:03 UTC
- Message-ID
- <20200211170359.31835-1-shouryashukla.oo@gmail.com>
Greetings everyone!
I have tried to improve the checks in some functions of 'submodule.c' and attempted to make them stricter. Initially, not all conditions were satisfied by the functions 'update_path_in_gitmodules()' and 'remove_path_from_gitmodules()' while changing(updating/removing paths) the '.gitmodules' file.
Now, on implementing the 'is_writing_gitmodules_ok()' function in one of the if cases of the functions, all the conditions are checked before returning a value unlike before.
Thanks, Shourya Shukla
Shourya Shukla (1): submodule: using 'is_writing_gitmodules_ok()' for a stricter check
submodule.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
-- 2.20.1