remove dangling repository reference