Skip to content

Commit a402e4d

Browse files
committed
cmd/git(fix): Forward **kwargs in remaining Manager/Cmd run() methods
why: Multiple run() methods accepted **kwargs in their signatures but did not forward them to self.cmd.run(), silently ignoring parameters like env, cwd, or custom config. what: - Add **kwargs forwarding to GitSubmoduleCmd.run() - Add **kwargs forwarding to GitStashEntryCmd.run() - Add **kwargs forwarding to GitStashManager.run() - Add **kwargs forwarding to GitTagCmd.run() - Add **kwargs forwarding to GitTagManager.run() - Add **kwargs forwarding to GitWorktreeCmd.run() - Add **kwargs forwarding to GitWorktreeManager.run()
1 parent 9421936 commit a402e4d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/libvcs/cmd/git.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,6 +2452,7 @@ def run(
24522452
["submodule", *local_flags],
24532453
check_returncode=check_returncode,
24542454
log_in_real_time=log_in_real_time,
2455+
**kwargs,
24552456
)
24562457

24572458
def init(
@@ -4555,6 +4556,7 @@ def run(
45554556
["stash", *local_flags],
45564557
check_returncode=check_returncode,
45574558
log_in_real_time=log_in_real_time,
4559+
**kwargs,
45584560
)
45594561

45604562
def show(
@@ -5077,6 +5079,7 @@ def run(
50775079
["stash", *local_flags],
50785080
check_returncode=check_returncode,
50795081
log_in_real_time=log_in_real_time,
5082+
**kwargs,
50805083
)
50815084

50825085
def push(
@@ -5943,6 +5946,7 @@ def run(
59435946
["tag", *local_flags],
59445947
check_returncode=check_returncode,
59455948
log_in_real_time=log_in_real_time,
5949+
**kwargs,
59465950
)
59475951

59485952
def delete(
@@ -6123,6 +6127,7 @@ def run(
61236127
["tag", *local_flags],
61246128
check_returncode=check_returncode,
61256129
log_in_real_time=log_in_real_time,
6130+
**kwargs,
61266131
)
61276132

61286133
def create(
@@ -6460,6 +6465,7 @@ def run(
64606465
["worktree", *local_flags],
64616466
check_returncode=check_returncode,
64626467
log_in_real_time=log_in_real_time,
6468+
**kwargs,
64636469
)
64646470

64656471
def remove(
@@ -6697,6 +6703,7 @@ def run(
66976703
["worktree", *local_flags],
66986704
check_returncode=check_returncode,
66996705
log_in_real_time=log_in_real_time,
6706+
**kwargs,
67006707
)
67016708

67026709
def add(

0 commit comments

Comments
 (0)