Skip to content

Commit ee82ddc

Browse files
committed
feat(vcs): cascade verbosity for switching
verbosity argument passed down to update_submodules callee, so that supression of command outputs is properly cascaded. Implements: #13329
1 parent bcde671 commit ee82ddc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pip/_internal/vcs/git.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def switch(
353353
cmd_args = make_command("checkout", *extra_flags, rev_options.to_args())
354354
self.run_command(cmd_args, cwd=dest)
355355

356-
self.update_submodules(dest)
356+
self.update_submodules(dest, verbosity=verbosity)
357357

358358
def update(
359359
self,

src/pip/_internal/vcs/versioncontrol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def obtain(self, dest: str, url: HiddenText, verbosity: int) -> None:
579579
url,
580580
rev_display,
581581
)
582-
self.switch(dest, url, rev_options)
582+
self.switch(dest, url, rev_options, verbosity=verbosity)
583583

584584
def unpack(self, location: str, url: HiddenText, verbosity: int) -> None:
585585
"""

0 commit comments

Comments
 (0)