Properly handle repositories with no upstream