1 |
On 11/02/2016 05:17 PM, Zac Medico wrote: |
2 |
> On 11/02/2016 02:09 PM, Mike Gilbert wrote: |
3 |
>> The -q option allows git-update-index to succeed even if there are |
4 |
>> locally modified files present. |
5 |
>> |
6 |
>> X-Gentoo-Bug-URL: https://bugs.gentoo.org/552814#c58 |
7 |
>> --- |
8 |
>> pym/portage/sync/modules/git/git.py | 5 +---- |
9 |
>> 1 file changed, 1 insertion(+), 4 deletions(-) |
10 |
>> |
11 |
>> diff --git a/pym/portage/sync/modules/git/git.py b/pym/portage/sync/modules/git/git.py |
12 |
>> index dc94ec9..3db6dc1 100644 |
13 |
>> --- a/pym/portage/sync/modules/git/git.py |
14 |
>> +++ b/pym/portage/sync/modules/git/git.py |
15 |
>> @@ -118,10 +118,7 @@ class GitSync(NewBase): |
16 |
>> if exitcode == os.EX_OK and self.repo.sync_depth is not None: |
17 |
>> # update-index --refresh is needed on some filesystems |
18 |
>> # (e.g. with overlayfs on squashfs) |
19 |
>> - update_index_cmd = [self.bin_command, 'update-index'] |
20 |
>> - if quiet: # -q needs to go first |
21 |
>> - update_index_cmd.append('-q') |
22 |
>> - update_index_cmd.append('--refresh') |
23 |
>> + update_index_cmd = [self.bin_command, 'update-index', '-q', '--refresh'] |
24 |
>> |
25 |
>> exitcode = subprocess.call(update_index_cmd, |
26 |
>> cwd=portage._unicode_encode(self.repo.location)) |
27 |
>> |
28 |
> |
29 |
> LGTM. |
30 |
> |
31 |
> I just checked the man page, and this behavior is documented there: |
32 |
> |
33 |
> -q |
34 |
> Quiet. If --refresh finds that the index needs an update, the default |
35 |
> behavior is to error out. This option makes git update-index continue |
36 |
> anyway. |
37 |
> |
38 |
|
39 |
Actually we should probably add --unmerged, as suggested numerous times |
40 |
by Martin Väth. |
41 |
-- |
42 |
Thanks, |
43 |
Zac |