Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751536AbeACFuz (ORCPT + 1 other); Wed, 3 Jan 2018 00:50:55 -0500 Received: from mail-io0-f174.google.com ([209.85.223.174]:45268 "EHLO mail-io0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751357AbeACFuw (ORCPT ); Wed, 3 Jan 2018 00:50:52 -0500 X-Google-Smtp-Source: ACJfBosBtgooM8Od7EeOcgZ2bdB0FNVK3NTWIfEFsmYFcIgS/pXVf3Wp9bLclK5MrgbP4oroGzY5vg== Date: Tue, 2 Jan 2018 21:50:49 -0800 From: Jonathan Nieder To: Bryan Turner Cc: Junio C Hamano , Brandon Williams , Ben Humphreys , Git Users , Linux Kernel , git-packagers@googlegroups.com Subject: Re: [ANNOUNCE] Git v2.16.0-rc0 Message-ID: <20180103055049.GC87855@aiede.mtv.corp.google.com> References: <20180103050730.GA87855@aiede.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Bryan Turner wrote: > On Tue, Jan 2, 2018 at 9:07 PM, Jonathan Nieder wrote: >> So my first question is why the basename detection is not working for >> you. What value of GIT_SSH, GIT_SSH_COMMAND, or core.sshCommand are >> you using? > > So I'd been digging further into this for the last hour because I > wasn't seeing quite the behavior I was expecting when I ran Git from > the command line on Ubuntu 12.04 or 14.04, and this nudged me to the > right answer: We're setting GIT_SSH to a wrapper script. In our case, > that wrapper script is just calling OpenSSH's ssh with all the > provided arguments (plus a couple extra ones), but because we're > setting GIT_SSH at all, that's why the auto variant code is running. > That being the case, explicitly setting GIT_SSH_VARIANT=ssh may be the > correct thing to do, to tell Git that we want to be treated like > "normal" OpenSSH, as opposed to expecting Git to assume we behave like > OpenSSH (when the Android repo use case clearly shows that assumption > also doesn't hold). Ah, that's a comfort. Setting GIT_SSH_VARIANT would avoid this autodetection code and is the recommended thing to do. That said, we can't go back in time and update everyone's tools to do that (e.g. there is not even a release of repo with [1] out yet), so this is still considered a regression and I'm glad you found it. Jonathan [1] https://gerrit-review.googlesource.com/c/git-repo/+/134950