Devtools/apply_proto_patch: fix "changes_path" preventing to commit
What
When used with "-c" argument, but without "--path" option, the scripts fails to stage files to be commited.
The "$CHANGES_PATH" expression is taken as an argument with an empty string instead of no argument.
This change fixes this.
Manually testing the MR
port any protocol-related patch without --path option, now works, used to fail. also using the --path option still works.
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR