ensure notify repo is always destoryed
move checkout_all_upstream to repo init