make cache repo to bare and repair java folder