Skip to content

Commit 58924a5

Browse files
authored
cmd(Git.rev_list): Fix variable expansion (#455)
2 parents e34d4b2 + 8ca612e commit 58924a5

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ $ pip install --user --upgrade --pre libvcs
1515

1616
<!-- Maintainers, insert changes / features for the next release here -->
1717

18+
### Fixes
19+
20+
- `Git.rev_list`: Fix argument expansion (#455)
21+
22+
Resolves issue with _fatal: '--max-count': not an integer_.
23+
1824
### Testing
1925

2026
- CI: Bump actions to Node 20 releases (#456)

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)