From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 928A01F463 for ; Fri, 22 Nov 2019 12:53:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727764AbfKVMxg (ORCPT ); Fri, 22 Nov 2019 07:53:36 -0500 Received: from cloud.peff.net ([104.130.231.41]:57938 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727090AbfKVMxg (ORCPT ); Fri, 22 Nov 2019 07:53:36 -0500 Received: (qmail 21019 invoked by uid 109); 22 Nov 2019 12:53:36 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Fri, 22 Nov 2019 12:53:36 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 24617 invoked by uid 111); 22 Nov 2019 12:57:27 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Fri, 22 Nov 2019 07:57:27 -0500 Authentication-Results: peff.net; auth=none Date: Fri, 22 Nov 2019 07:53:35 -0500 From: Jeff King To: "Szelp, A. Sz." Cc: git@vger.kernel.org Subject: Re: How to fetch all tags in the history of selected branch, but only those tags? Message-ID: <20191122125335.GA20732@sigill.intra.peff.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, Nov 22, 2019 at 10:58:07AM +0100, Szelp, A. Sz. wrote: > However doing `git fetch origin master` I do *not* get any tags. Doing > `--tags` on the other hand fetches *all* of the tags, defying the > benefit spelled out in " the effect is to fetch tags that point at > branches that you are interested in". > > What am I missing? Is this indeed a bug (either in implementation or > in documentation), or am I missing something obvious. Also, how can I > force the desired behaviour (fetch the tags in the history, but only > those). This was discussed recently in: https://public-inbox.org/git/alpine.LSU.2.20.1910021431130.32588@cpza.bfz-tzou.qr/ -Peff