Improvements to method updateMockRepo

Change-Id: I2951a57a541e914295c80f3fd94216ea01002fc7