Skip to content

Commit 98385f9

Browse files
Fix bug when running commands with less than 5 commits in repo
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 94832dd commit 98385f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

git_sim/git_sim_base_command.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,11 @@ def build_commit_id_and_message(self, commit, dots=False):
260260
"", font="Monospace", font_size=20, color=self.scene.fontColor
261261
)
262262
commitMessage = ""
263-
elif dots and commit.hexsha == self.commits[-1].hexsha:
263+
elif (
264+
dots
265+
and self.commits[-1] != "dark"
266+
and commit.hexsha == self.commits[-1].hexsha
267+
):
264268
commitId = m.Text(
265269
"...", font="Monospace", font_size=20, color=self.scene.fontColor
266270
)

0 commit comments

Comments
 (0)