checkout read-only file only