public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] sync: always pass -q to git-update-index
@ 2016-11-02 21:09 Mike Gilbert
  2016-11-03  0:17 ` Zac Medico
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2016-11-02 21:09 UTC (permalink / raw
  To: gentoo-portage-dev

The -q option allows git-update-index to succeed even if there are
locally modified files present.

X-Gentoo-Bug-URL: https://bugs.gentoo.org/552814#c58
---
 pym/portage/sync/modules/git/git.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pym/portage/sync/modules/git/git.py b/pym/portage/sync/modules/git/git.py
index dc94ec9..3db6dc1 100644
--- a/pym/portage/sync/modules/git/git.py
+++ b/pym/portage/sync/modules/git/git.py
@@ -118,10 +118,7 @@ class GitSync(NewBase):
 		if exitcode == os.EX_OK and self.repo.sync_depth is not None:
 			# update-index --refresh is needed on some filesystems
 			# (e.g. with overlayfs on squashfs)
-			update_index_cmd = [self.bin_command, 'update-index']
-			if quiet: # -q needs to go first
-				update_index_cmd.append('-q')
-			update_index_cmd.append('--refresh')
+			update_index_cmd = [self.bin_command, 'update-index', '-q', '--refresh']
 
 			exitcode = subprocess.call(update_index_cmd,
 				cwd=portage._unicode_encode(self.repo.location))
-- 
2.10.2



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-11-03 20:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-02 21:09 [gentoo-portage-dev] [PATCH] sync: always pass -q to git-update-index Mike Gilbert
2016-11-03  0:17 ` Zac Medico
2016-11-03  4:57   ` Zac Medico
2016-11-03  6:17     ` Brian Dolbec
2016-11-03 16:10       ` Zac Medico
2016-11-03 17:03         ` Brian Dolbec
2016-11-03 17:27           ` Zac Medico
2016-11-03 19:22     ` [gentoo-portage-dev] [PATCH] sync: always pass -q --unmerged " Mike Gilbert
2016-11-03 19:29       ` Zac Medico
2016-11-03 19:59         ` Brian Dolbec
2016-11-03 20:06           ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox