From 7d82a0c4ffa297ebde234079abf94f7ef9106faa Mon Sep 17 00:00:00 2001 From: jross Date: Tue, 24 Sep 2024 11:22:00 -0600 Subject: [PATCH] fixed is clean --- pychron/git_archive/repo_manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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