Skip to content

Commit 7cf3f46

Browse files
committed
cmd/git(fix[run methods]): Forward **kwargs to underlying cmd.run calls
why: Multiple run() methods accepted **kwargs in their signatures but did not forward them to self.cmd.run(), silently ignoring any extra parameters like env, cwd, or custom config. what: - Add **kwargs to GitNotesManager.run() call - Add **kwargs to GitBranchCmd.run() call - Add **kwargs to GitBranchManager.run() call - Add **kwargs to GitRemoteCmd.run() call - Add **kwargs to GitRemoteManager.run() call
1 parent f8f4d9b commit 7cf3f46

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/libvcs/cmd/git.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3712,6 +3712,7 @@ def run(
37123712
["remote", *local_flags],
37133713
check_returncode=check_returncode,
37143714
log_in_real_time=log_in_real_time,
3715+
**kwargs,
37153716
)
37163717

37173718
def rename(
@@ -4226,6 +4227,7 @@ def run(
42264227
["remote", *local_flags],
42274228
check_returncode=check_returncode,
42284229
log_in_real_time=log_in_real_time,
4230+
**kwargs,
42294231
)
42304232

42314233
def add(
@@ -5347,6 +5349,7 @@ def run(
53475349
["branch", *local_flags],
53485350
check_returncode=check_returncode,
53495351
log_in_real_time=log_in_real_time,
5352+
**kwargs,
53505353
)
53515354

53525355
def checkout(self) -> str:
@@ -5650,6 +5653,7 @@ def run(
56505653
["branch", *local_flags],
56515654
check_returncode=check_returncode,
56525655
log_in_real_time=log_in_real_time,
5656+
**kwargs,
56535657
)
56545658

56555659
def checkout(self, *, branch: str) -> str:
@@ -7284,6 +7288,7 @@ def run(
72847288
["notes", *ref_flags, *local_flags],
72857289
check_returncode=check_returncode,
72867290
log_in_real_time=log_in_real_time,
7291+
**kwargs,
72877292
)
72887293

72897294
def add(

0 commit comments

Comments
 (0)