Skip to content

Commit 683aa35

Browse files
Fix bug in push subcommand when simulating successful push
Signed-off-by: Jacob Stopak <[email protected]>
1 parent a439e1d commit 683aa35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git_sim/push.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def construct(self):
9696
)
9797
else:
9898
self.parse_commits(head_commit)
99+
99100
self.recenter_frame()
100101
self.scale_frame()
101102
self.failed_push(push_result)
@@ -113,6 +114,7 @@ def construct(self):
113114
shutil.rmtree(new_dir2, onerror=self.del_rw)
114115

115116
def failed_push(self, push_result):
117+
texts = []
116118
if push_result == 1:
117119
text1 = m.Text(
118120
f"'git push' failed since the remote repo has commits that don't exist locally.",

0 commit comments

Comments
 (0)