mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
Update pr_agent/git_providers/local_git_provider.py
Co-authored-by: Ori Kotek <orikotek@gmail.com>
This commit is contained in:

committed by
GitHub

parent
c0610afe2a
commit
ca42a54bc3
@ -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)
|
||||
|
Reference in New Issue
Block a user