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

Re: Zombie tag

From
stefan.naewe@atlas-elektronik.com <stefan.naewe@atlas-elektronik.com>
Date
Jan 21, 2016, 14:48 UTC
Message-ID
<56A0EFD2.40204@atlas-elektronik.com>
In-Reply-To
<56A09418.1070201@atlas-elektronik.com>
Am 21.01.2016 um 09:17 schrieb stefan.naewe@atlas-elektronik.com:
Show 10 quoted lines
> I'm having trouble to get rid of a deleted tag.
> Here's what I did:
> 
> - push master branch from a non-bare repo (R1) into a bare repo (B1)
> - push a tag (tag-a) from R1 into the same B1
> - force-push master from another non-bare repo (R2) into B1
> - do 'git push B1 :tag-a' from R2 to delete the tag
> Now, in B1, 'git fsck' shows a dangling tag that can be identified
> as 'tag-a' from above. There's obviously no reflog in B1.
> I don't know how to get rid of that tag.
Just do 'git gc --prune=all' or 'git prune', stupid!
Show 6 quoted lines
> A cleaned-up 'script' session of the above is attached.
> 
> The problem initially occurred on Windows with git 2.7.0 but could
> be reproduced on a Linux machine with git 2.7.0.
> 
> What's going on here ?
I guess one never stops learning when using git...
Stefan
-- 
----------------------------------------------------------------
/dev/random says: Socialism is the equal distribution of poverty.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')" 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF
Previous: stefan.naewe@atlas-elektronik.com
Message 2 of 2 in “Zombie tag”
  1. stefan.naewe@atlas-elektronik.comJan 21, 2016
  2. stefan.naewe@atlas-elektronik.comJan 21, 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.