When read-only is turned back on, add and commit the file.