From patchwork Fri Oct 26 19:27:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= X-Patchwork-Id: 10657759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CFF914BD for ; Fri, 26 Oct 2018 19:27:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EA26286F9 for ; Fri, 26 Oct 2018 19:27:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82A692CAF8; Fri, 26 Oct 2018 19:27:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D73A286F9 for ; Fri, 26 Oct 2018 19:27:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725855AbeJ0EGD (ORCPT ); Sat, 27 Oct 2018 00:06:03 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54481 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbeJ0EGC (ORCPT ); Sat, 27 Oct 2018 00:06:02 -0400 Received: by mail-wm1-f65.google.com with SMTP id r63-v6so2507470wma.4 for ; Fri, 26 Oct 2018 12:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SQXz5bBg3+FsZ88Gvjr1CGI1ouvqxDpoUZSFbGXdpVU=; b=uMjZsFT7bqYaLND/SdjE/4/zyViRNOedRy1oMn1g9MOi3f2fZZ3AWo+55THYlZzVW1 VZomZnED+oPEky0kEGppzIFvLhbYOvKLIBiFbk7v0XSP0DK5J84gebDS4/XR/dYtmWBy F/XNPN5dNJGbfPEwfpzShRdzAmw8kGtey77d+zo9oT2FP1qflIuVNBt0X9RqJyYQPP0J Z1c30RQA64+zzg6x9EM8p8Y80GExsbX+VsryaoK032RDCjgLmCwVwnCJO1dBiTRDngCw RNfVyS6nS5I7RSRQtphUafpEyhn4RZN+n4hyu4hHPiq0H3NymTETOeJpDPe0blS+h9SH dcrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SQXz5bBg3+FsZ88Gvjr1CGI1ouvqxDpoUZSFbGXdpVU=; b=BwVlnSD1/p8tZWR5M9ab9pWrnecpR4hA84PtHyvXnDNm03DWdzeCvJW4Fu3hWI4lMY aFegoMHY2bqWwvF1i4SWkQqOtLS1HEUFOlnymDg7hOZ0vLNFLJo7xIJUxKdDuwqhQgsB VtFae4UXHCVEagVmaHxNBrf49ZkWv3Y+JZsdhl2RioW34Ezng4JqhqJYj3oPHFfQfZmX tqubpT9Wu3DylFAc58jsZRK6vYe3/jTxwNGCDqMnvwvA6To6p7kwQKBKcZOvvDHBBeKB b2gant9sLIb2TlaTzWsKPa810yegPq7f9WP7X/QxsK21Pc2+QJdAVPzf4zKZbRu1TKq/ 0WqA== X-Gm-Message-State: AGRZ1gKrtCUv/SbJRhYNh6cHcRqbwWcJjbpdj2IGS5M3D3Vk7eZ+XBO/ OZSLwIR5BNY0BwnaDAOglzOLPxvz X-Google-Smtp-Source: AJdET5fmpymYAwQwRWJmtKueCfsTD/zcKWB5+C/DBP32wbXaKUmIS5bU+5PR+9iHowin/xwP33Sf7A== X-Received: by 2002:a1c:bce:: with SMTP id 197-v6mr6205635wml.15.1540582064013; Fri, 26 Oct 2018 12:27:44 -0700 (PDT) Received: from u.nix.is ([2a01:4f8:190:5095::2]) by smtp.gmail.com with ESMTPSA id e196-v6sm10738981wmf.43.2018.10.26.12.27.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 12:27:43 -0700 (PDT) From: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= To: git@vger.kernel.org Cc: Junio C Hamano , Jeff King , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Subject: [PATCH v2 0/7] fixes for unqualified push Date: Fri, 26 Oct 2018 19:27:27 +0000 Message-Id: <20181026192734.9609-1-avarab@gmail.com> X-Mailer: git-send-email 2.19.1.759.g500967bb5e In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This has grown to a 7-part series for v2 (from 2 patches). This addresse all the feedback for v1 and then some. Ævar Arnfjörð Bjarmason (7): remote.c: add braces in anticipation of a follow-up change i18n: remote.c: mark error(...) messages for translation push: improve the error shown on unqualified push push: move unqualified refname error into a function push: add an advice on unqualified push push: test that doesn't DWYM if is unqualified push: add DWYM support for "git push refs/remotes/...:" Documentation/config.txt | 7 +++ advice.c | 2 + advice.h | 1 + remote.c | 124 +++++++++++++++++++++++++++++++-------- t/t5505-remote.sh | 57 ++++++++++++++++++ 5 files changed, 166 insertions(+), 25 deletions(-)