When read-only is turned back on, add and commit the file.
Merge pull request #1 from vanicat/master

add and commit file when read-only is turn on