From: Junio C Hamano Date: Thu, 22 Mar 2012 17:46:05 GMT Subject: Re: [BUG] git bash-completion is incorrect for "git pull origin mas" if the ssh key is encrypted Message-ID: <7vmx78y1eq.fsf@alter.siamese.dyndns.org> In-Reply-To: <4F6AFEC8.9090907@in.waw.pl> Zbigniew Jędrzejewski-Szmek writes: > Maybe git-ls-remote should learn --quiet? I would rather think that the completion should ask for refs only when dealing with local repositories, without going over network, whether the query involves authentication or not. When given a repository nickname, do we have a good way for the completion script to tell if it is local or remote? "type -d $it" might be cheap way to do so, or we could even do "test $it = ." to limit it really to the current repository.