mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
Update pr_agent/git_providers/local_git_provider.py
Co-authored-by: Ori Kotek <orikotek@gmail.com>
This commit is contained in:
parent
c0610afe2a
commit
ca42a54bc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue