I have sync-type = git in my repos.conf/gentoo.conf and I noticed that when I run emerge --sync --ask then it proceeds with the sync operation (i.e. it invokes git pull) as if the --ask flag was not specified. On the other hand, when the rsync sync-type is used, portage does respect the --ask flag and asks for user confirmation first.
Considering the new parallel sync code from bug 557426, we need to move the prompt somewhere before SyncRepos._sync begins syncing the repos in parallel (or else we could end up having multiple simultaneous prompts from concurrent sync jobs).
For the parallel sync issue, we could simply disable parallel sync that with --ask.
wfm
This is definitely still an issue. I just check this with Portage 3.0.51 and `emerge --sync -a` still behaves the same way as `emerge --sync`, when syncing with a git repo.
(In reply to redneb from comment #4) > This is definitely still an issue. I just check this with Portage 3.0.51 and > `emerge --sync -a` still behaves the same way as `emerge --sync`, when > syncing with a git repo. I meant Zac's suggestion works for me, to be clear. Sorry for the ambiguity.