{"thread":{"id":"2942","subject":"Cogito: cg-push doesn't push tags?","startedAt":"2005-12-29T21:59:21Z","lastAt":"2005-12-29T22:10:13Z","messageCount":3,"participants":["H. Peter Anvin","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"14094","messageId":"43B45C39.8040501@zytor.com","threadId":"2942","inReplyTo":null,"subject":"Cogito: cg-push doesn't push tags?","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-12-29T21:59:21Z","receivedAt":"2005-12-29T21:59:21Z","isPatch":false,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"It seems that cg-push in cogito 0.16.2 doesn't push new tags when used \nover git+ssh transport?  Am I completely wet behind the ears, or is that \na bug?\n\nIn particular, it seems to manifest itself when the *only* thing that \nhas changed is tags.\n\n\t-hpa\n"},{"id":"14095","messageId":"Pine.LNX.4.64.0512291404240.3298@g5.osdl.org","threadId":"2942","inReplyTo":"43B45C39.8040501@zytor.com","subject":"Re: Cogito: cg-push doesn't push tags?","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-12-29T22:08:59Z","receivedAt":"2005-12-29T22:08:59Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Thu, 29 Dec 2005, H. Peter Anvin wrote:\n>\n> It seems that cg-push in cogito 0.16.2 doesn't push new tags when used over\n> git+ssh transport?  Am I completely wet behind the ears, or is that a bug?\n\nList the tags you want pushed. \n\nThe git transport (whether over ssh or locally) will default to updating \nonly _shared_ references. So any heads that you have updated it will \nupdate by default. But if you want to create a new branch or tag on the \nother end, you need to list it explicitly (and once you do, it won't do \nthe default ones at all).\n\nNow, \"git fetch\" has a \"--tags\" argument that is shorthand for \"all tags\", \nand I think we should add that to \"git send-pack\" too just because it's \nboth a common operation _and_ it mirrors \"git fetch\". But in the meantime \nyou can hack around it with something like\n\n\tgit send-pack <destination> $(cd .git/refs/ ; echo tags/*)\n\n\nwhich is a silly way to list all tags ;)\n\n\t\tLinus\n"},{"id":"14096","messageId":"Pine.LNX.4.64.0512291409140.3298@g5.osdl.org","threadId":"2942","inReplyTo":"Pine.LNX.4.64.0512291404240.3298@g5.osdl.org","subject":"Re: Cogito: cg-push doesn't push tags?","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-12-29T22:10:13Z","receivedAt":"2005-12-29T22:10:13Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Thu, 29 Dec 2005, Linus Torvalds wrote:\n>\n> But in the meantime you can hack around it with something like\n> \n> \tgit send-pack <destination> $(cd .git/refs/ ; echo tags/*)\n> \n> which is a silly way to list all tags ;)\n\nActually, I guess it should use \"find tags/ -type f\" or something like \nthat instead of \"echo tags/*\". Otherwise you don't get tags with slashes \nright.\n\n\t\tLinus\n"}]}