From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.normalmode.org (h01.normalmode.org [157.230.60.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4158C391E72 for ; Tue, 16 Jun 2026 22:26:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=157.230.60.252 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781648799; cv=none; b=CK88hhmWqgvCZYgdX5yVWyUt6jbNWI1LWAN6VXrBQi5DfGtZgfsDDcW2Q2N0O876GeixPDrm9vULosLxW3tfziV4jRmEgtQMCw8MAi2pqcdNckeg8DLGH3eRBmJX7Bmiu5F4eAWZ9KvwXWm47U1ukB7DGvuuSo68Jw9uVIpdJXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781648799; c=relaxed/simple; bh=GHDpcl6oITglLBfXWzDf5QmqmN703XfHWUIXdMHy7Mw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dUHMC7io/vBwKcUBVI8qC6X56QSf7LcnESS7xGTB0GaDYk2JZjO+Y+Ry+85RMfS6sXqpJJ68g+yt8h02dHLpfXkoQmI9bZ4mhdfFVBbZ3Rge6sDTLCLrEybbYUvZPZ0sxsBZ9nRN+Uzmh7GnxZfa93s5ScPl5wwyi6GZ23N3vJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lfurio.us; spf=pass smtp.mailfrom=lfurio.us; dkim=pass (1024-bit key) header.d=lfurio.us header.i=@lfurio.us header.b=Ktai5cG+; arc=none smtp.client-ip=157.230.60.252 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lfurio.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lfurio.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lfurio.us header.i=@lfurio.us header.b="Ktai5cG+" Received: by mail.normalmode.org (Postfix) with ESMTPSA id 00F9560424; Tue, 16 Jun 2026 22:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lfurio.us; s=default; t=1781648794; bh=GHDpcl6oITglLBfXWzDf5QmqmN703XfHWUIXdMHy7Mw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ktai5cG+tbQbkJKUjploJa7R0xOY8pCRYko6UUikK2nXkPTo8qoTcyByoSAB49IVa IbBWpAt0wwX0TvgQfSViZXP61RvewTbckmLAavIRCKwRXlSsMfeejHYxZ9i9Kwg+l2 7qsUHSls2gA16ugkteVVQDr0aeffSIko8UMusivQ= From: Matt Hunter To: git@vger.kernel.org Cc: Bence Ferdinandy , Jeff King , Junio C Hamano Subject: [PATCH v2 1/7] fetch: fixup set_head advice for warn-if-not-branch Date: Tue, 16 Jun 2026 18:25:15 -0400 Message-ID: <20260616222606.1003521-2-m@lfurio.us> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616222606.1003521-1-m@lfurio.us> References: <20260612055947.1499497-1-m@lfurio.us> <20260616222606.1003521-1-m@lfurio.us> Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Specifying the word 'branch' in the command is not correct - a mismatch with both the implementation in remote.c and the documentation. Signed-off-by: Matt Hunter --- builtin/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/fetch.c b/builtin/fetch.c index c1d7c672f4e0..82969e230f5a 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1700,7 +1700,7 @@ static void set_head_advice_msg(const char *remote, const char *head_name) N_("Run 'git remote set-head %s %s' to follow the change, or set\n" "'remote.%s.followRemoteHEAD' configuration option to a different value\n" "if you do not want to see this message. Specifically running\n" - "'git config set remote.%s.followRemoteHEAD warn-if-not-branch-%s'\n" + "'git config set remote.%s.followRemoteHEAD warn-if-not-%s'\n" "will disable the warning until the remote changes HEAD to something else."); advise_if_enabled(ADVICE_FETCH_SET_HEAD_WARN, _(message_advice_set_head), -- 2.54.0