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

Pulling git tags from multiple sources incorrectly reports stale tags

From
CGChristian Goetze <christian.goetze@appdynamics.com>
Date
May 19, 2016, 23:25 UTC
Message-ID
<CACuwOqNZC3NipCVJ5YbTA_0d-P+i2KmQ5V2HzYPhZFQn4Kuwkg@mail.gmail.com>

See https://gist.github.com/cg-soft/62ac3529cf9ad6f6586e07866de43bc4 and discussion here: http://stackoverflow.com/questions/37330041/merging-git-tags-from-multiple-reference-locations

Essentially, using this git config to pull tags from multiple remote refs works fine:

[remote "origin"]
    url = /Users/christian.goetze/git/tag-merge-demo/origin
    fetch = +refs/heads/*:refs/remotes/origin/*
    fetch = +refs/private/tags/*:refs/tags/*
    fetch = +refs/tags/*:refs/tags/*
But this, leaving out the last line,  doesn't:
[remote "origin"]
    url = /Users/christian.goetze/git/tag-merge-demo/origin
    fetch = +refs/heads/*:refs/remotes/origin/*
    fetch = +refs/private/tags/*:refs/tags/*
I would expect either to work the same way.
Message 1 of 1 in “Pulling git tags from multiple sources incorrectly reports stale tags”
  1. Christian GoetzeMay 19, 2016

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.