Skip to content

Commit 2a37f7e

Browse files
committed
cmd(Git.rev_list): Fix argument expansion
1 parent e34d4b2 commit 2a37f7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libvcs/cmd/git.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,16 +1918,16 @@ def rev_list(
19181918
'[master ...] Moo'
19191919
19201920
>>> git.rev_list(commit="HEAD", max_count=1)
1921-
''
1921+
'...'
19221922
19231923
>>> git.rev_list(commit="HEAD", path=".", max_count=1, header=True)
1924-
''
1924+
'...'
19251925
19261926
>>> git.rev_list(commit="origin..HEAD", max_count=1, _all=True, header=True)
1927-
''
1927+
'...'
19281928
19291929
>>> git.rev_list(commit="origin..HEAD", max_count=1, header=True)
1930-
''
1930+
'...'
19311931
"""
19321932
required_flags: list[str] = []
19331933
path_flags: list[str] = []
@@ -1976,7 +1976,7 @@ def rev_list(
19761976
(max_parents, "--max-parents"),
19771977
]:
19781978
if int_flag is not None:
1979-
local_flags.extend([int_shell_flag, str(int_shell_flag)])
1979+
local_flags.extend([int_shell_flag, str(int_flag)])
19801980

19811981
for flag, shell_flag in [
19821982
# Limiting output

0 commit comments

Comments
 (0)