black formatting

This commit is contained in:
Paul Gauthier 2023-05-17 18:24:35 -07:00
parent 3c26f90269
commit 9a413d351d
4 changed files with 26 additions and 16 deletions

View file

@ -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