Support read-only git gems (fixes #3092)
Refactor test to use with_read_only helper
Merge pull request #3097 from pmahoney/fix-read-only-git-gems

Fix read only git gems