Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 26139cb

Browse filesBrowse files
Fix keyerror when deleting tag that doesn't exist in set of drawn commits
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent ccd3d99 commit 26139cb
Copy full SHA for 26139cb

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/git_sim/tag.py

Copy file name to clipboardExpand all lines: src/git_sim/tag.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def construct(self):
4343
print(f"{settings.INFO_STRING} {self.cmd}")
4444

4545
self.show_intro()
46-
self.parse_commits()
46+
self.parse_commits(self.get_commit(sha_or_ref=self.name) if self.d else None)
4747
self.parse_all()
48-
self.center_frame_on_commit(self.get_commit())
48+
self.center_frame_on_commit(self.get_commit(sha_or_ref=self.name) if self.d else self.get_commit())
4949

5050
if not self.d:
5151
tagText = m.Text(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.