From ca42a54bc364b68a8e4517504217cfd3954a3a93 Mon Sep 17 00:00:00 2001 From: "Patryk Kowalski (deepsense.ai)" <139119482+patryk-kowalski-ds@users.noreply.github.com> Date: Mon, 24 Jul 2023 16:47:05 +0200 Subject: [PATCH] Update pr_agent/git_providers/local_git_provider.py Co-authored-by: Ori Kotek --- pr_agent/git_providers/local_git_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/git_providers/local_git_provider.py b/pr_agent/git_providers/local_git_provider.py index 90d512a1..86673016 100644 --- a/pr_agent/git_providers/local_git_provider.py +++ b/pr_agent/git_providers/local_git_provider.py @@ -65,7 +65,7 @@ class LocalGitProvider(GitProvider): """ logging.debug('Preparing repository for PR-mimic generation...') if self.repo.is_dirty(): - raise ValueError('The repository is not in a clean state. Please check in all files.') + raise ValueError('The repository is not in a clean state. Please commit or stash pending changes.') if self.tmp_branch_name in self.repo.heads: self.repo.delete_head(self.tmp_branch_name, force=True) self.repo.git.checkout('HEAD', b=self.tmp_branch_name)