Skip to content

Commit 4f4e12a

Browse files
committed
cmd/git(fix[remote show]): Only add --verbose when explicitly True
why: Using `if verbose is not None:` would add --verbose for both True and False values. The flag should only be added when verbose=True. what: - Change `if verbose is not None:` to `if verbose is True:` in GitRemoteCmd.show() and GitRemoteManager.show()
1 parent 9907486 commit 4f4e12a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libvcs/cmd/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3811,7 +3811,7 @@ def show(
38113811
local_flags: list[str] = []
38123812
required_flags: list[str] = [self.remote_name]
38133813

3814-
if verbose is not None:
3814+
if verbose is True:
38153815
local_flags.append("--verbose")
38163816

38173817
if no_query_remotes:
@@ -4305,7 +4305,7 @@ def show(
43054305
if name is not None:
43064306
required_flags.append(name)
43074307

4308-
if verbose is not None:
4308+
if verbose is True:
43094309
local_flags.append("--verbose")
43104310

43114311
if no_query_remotes:

0 commit comments

Comments
 (0)