That is the simplest way.

Once you made the change did it work?

Just to note, by making the change, future updates may get blocked by git. You need to review the update log to check there are no errors after you have updated.