mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
black formatting
This commit is contained in:
parent
3c26f90269
commit
9a413d351d
4 changed files with 26 additions and 16 deletions
|
@ -86,7 +86,10 @@ class Commands:
|
|||
return
|
||||
|
||||
if self.coder.repo.is_dirty():
|
||||
self.io.tool_error("The repository has uncommitted changes. Please commit or stash them before undoing.")
|
||||
self.io.tool_error(
|
||||
"The repository has uncommitted changes. Please commit or stash them before"
|
||||
" undoing."
|
||||
)
|
||||
return
|
||||
|
||||
local_head = self.coder.repo.git.rev_parse("HEAD")
|
||||
|
@ -100,7 +103,10 @@ class Commands:
|
|||
self.io.tool_error(f"Error: Unable to get the remote 'origin/{current_branch}'.")
|
||||
return
|
||||
if local_head == remote_head:
|
||||
self.io.tool_error("The last commit has already been pushed to the origin. Undoing is not possible.")
|
||||
self.io.tool_error(
|
||||
"The last commit has already been pushed to the origin. Undoing is not"
|
||||
" possible."
|
||||
)
|
||||
return
|
||||
|
||||
last_commit = self.coder.repo.head.commit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue