Add repository disabling code back to local repo snippet

Change-Id: I8a3b2ac77abce8f35b829c3b272b78a376a7e748