git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: missing tags from "git fetch"

From
MNMartin Nicolay <m.nicolay@osm-ag.de>
Date
Oct 2, 2019, 15:24 UTC
Message-ID
<alpine.LSU.2.20.1910021707570.32588@cpza.bfz-tzou.qr>
In-Reply-To
<20191002135518.GA3599@sigill.intra.peff.net>
On Wednesday 2019-10-02 15:55, Jeff King wrote:
Show 7 quoted lines
> So instead of this:
>
>> $ git fetch origin master
>
> try this:
>
>  $ git fetch origin
It creates the master branch. This is what I'm trying to avoid.
> or even this:
>
>  $ git fetch origin master:refs/remotes/origin/master
Bingo. It's ugly but it works. Problem solved :-).
> There's more discussion in this thread (but it looks like no patches
> ever came out of it):
>
>  https://public-inbox.org/git/20170817092853.hteuzni5lxia4ejf@sigill.intra.peff.net/

The explanation makes a kind of sense, but if someone want to avoid polluting the tags when fetching into FETCH_HEAD one could get it with --no-tags. So this is more of a misguided attempt to get a seemingly sensible default while destroying a consistent behaviour.

Sometimes I can see why people say git is confusing ;-).

Thanks Martin Nicolay

-- 
No MS-Word attachments (http://www.gnu.org/philosophy/no-word-attachments.html)
_______________________________________________________________________________
OSM AG | Ruhrallee 191 | 45136 Essen | Fon: 0201-89 555 | Fax: 0201-89 55 400
web: www.osm-ag.de | e-mail: info@osm-ag.de
IBAN: DE67 4325 0030 0001 0059 82 | BIC: WELADED1HRN
USt-ldNr.: DE163337313 | HRB: 28171 Essen
Aufsichtsratsvorsitzende: Dipl.-Kff. Sabine Elsas
Vorstand: Johannes Kuhn (Vorsitzender), Christian Damsky, Axel Roland

--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.
_______________________________________________________________________________
Previous: Jeff KingNext: Martin Nicolay
Message 3 of 5 in “missing tags from "git fetch"”
  1. Martin NicolayOct 2, 2019
  2. Jeff KingOct 2, 2019
  3. Martin NicolayOct 2, 2019
  4. Martin NicolayOct 25, 2019
  5. Jeff KingNov 22, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.