diff --git a/pychron/git_archive/repo_manager.py b/pychron/git_archive/repo_manager.py index dd681a10a..7013585de 100644 --- a/pychron/git_archive/repo_manager.py +++ b/pychron/git_archive/repo_manager.py @@ -1022,7 +1022,10 @@ def ahead_behind(self, remote="origin"): self.debug("ahead behind") repo = self._repo - ahead, behind = ahead_behind(repo, remote) + if not self._get_remote(remote): + ahead, behind = 0,0 + else: + ahead, behind = ahead_behind(repo, remote) return ahead, behind