Skip to content

Commit 9216d96

Browse files
Fix --commits flag with log subcommand
Signed-off-by: Jacob Stopak <[email protected]>
1 parent 1199200 commit 9216d96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git_sim/git_sim_log.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
class GitSimLog(GitSimBaseCommand):
77
def __init__(self, args: Namespace):
88
super().__init__(args=args)
9+
self.numCommits = self.args.commits + 1
10+
self.defaultNumCommits = self.args.commits + 1
911
try:
1012
self.selected_branches.append(self.repo.active_branch.name)
1113
except TypeError:

0 commit comments

Comments
 (0)