fix new added local repo bug.

Change-Id: I8287c0c6a9bd06a34a01b13ee03429e137977584