Skip to content

Commit 98da623

Browse files
committed
sync/git(fix[update_repo]): Use quiet=True for stash.save
why: The code incorrectly passed "--quiet" as the message parameter, creating stashes with literal "--quiet" message instead of suppressing output. what: - Change stash.save(message="--quiet") to stash.save(quiet=True) - Remove unused git_stash_save_options variable - Remove outdated Git < 1.7.6 comment
1 parent f0e705d commit 98da623

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libvcs/sync/git.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,8 @@ def update_repo(
480480
# If not in clean state, stash changes in order to be able
481481
# to be able to perform git pull --rebase
482482
if need_stash:
483-
# If Git < 1.7.6, uses --quiet --all
484-
git_stash_save_options = "--quiet"
485483
try:
486-
process = self.cmd.stash.save(message=git_stash_save_options)
484+
process = self.cmd.stash.save(quiet=True)
487485
except exc.CommandError:
488486
self.log.exception("Failed to stash changes")
489487

0 commit comments

Comments
 (0)