{"thread":{"id":"2143","subject":"Pushing a single tag (ref + object)?","startedAt":"2005-10-19T06:05:32Z","lastAt":"2005-10-19T20:23:48Z","messageCount":4,"participants":["Martin Langhoff","Linus Torvalds","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"10258","messageId":"46a038f90510182305j1fa2c4bh6d2b36c2fdd058ce@mail.gmail.com","threadId":"2143","inReplyTo":"46a038f90510131929m3dac4cc5y6071550e9e9c71ad@mail.gmail.com","subject":"Pushing a single tag (ref + object)?","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-10-19T06:05:32Z","receivedAt":"2005-10-19T06:05:32Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"While we are using a repo which holds all our branches\n(dev/test/prod), locally we have a group of developers that checkout\none repo-per-branch, working on it with a\ncg-clone/cg-update/cg-commit/cg-push workcycle. So far it's working\ngreat.\n\nNow, I am at a loss on how to push a _tag_ object+ref to the repo,\nwithout doing a git-push --all, which I naturally don't want to do. I\nmanaged to push the object itself, doing\n\n    git-push repository tagrefname\n\nBut that ddn't create the ref on the repo. So I had to do\n\n    scp .git/refs/tags/refname repostory/refs/tags/\n\nI'm feeling a tad lost here. Surely there's a way? Or should I be\ncrafting a patch against git-push-script? Problem is, git-push script\ndoesn't do any parsing of the params. Grmbl.\n\n\nmartin\n"},{"id":"10282","messageId":"Pine.LNX.4.64.0510190702360.3369@g5.osdl.org","threadId":"2143","inReplyTo":"46a038f90510182305j1fa2c4bh6d2b36c2fdd058ce@mail.gmail.com","subject":"Re: Pushing a single tag (ref + object)?","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-10-19T14:13:49Z","receivedAt":"2005-10-19T14:13:49Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Wed, 19 Oct 2005, Martin Langhoff wrote:\n> \n> Now, I am at a loss on how to push a _tag_ object+ref to the repo,\n> without doing a git-push --all, which I naturally don't want to do. I\n> managed to push the object itself, doing\n> \n>     git-push repository tagrefname\n\nThis really should work. \n\nCan you try with\n\n\tgit-send-pack repository tagname\n\nfirst? \n\nIf that works for you (it really really should, since that's what I do all \nthe time), then the problem is in \"get_remote_refs_for_push\"..\n\nOh. Looking at \"git-push.sh\", I think it is just really really buggy.\n\nIt does all this magic to set \"x\", but then it never uses it, and uses \n\"$@\" instead after all. Which it has shifted all away. \n\nHow does that thing work at all? Me, I've always used the raw \ngit-send-pack program, so I've never tested it, but obviously others are \nusing it.\n\n\t\tLinus\n"},{"id":"10288","messageId":"7vvezt8mvv.fsf@assigned-by-dhcp.cox.net","threadId":"2143","inReplyTo":"Pine.LNX.4.64.0510190702360.3369@g5.osdl.org","subject":"Re: Pushing a single tag (ref + object)?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-19T16:58:12Z","receivedAt":"2005-10-19T16:58:12Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Linus Torvalds <torvalds@osdl.org> writes:\n\n> It does all this magic to set \"x\", but then it never uses it, and uses \n> \"$@\" instead after all. Which it has shifted all away. \n\nYour /bin/sh scripting is rotting ;-) That is not a variable.\nIf you saw the script actually used the value 'x' then you have\nspotted a bug.\n\nThat 'x' is not a magic but an old idiom to protect 'set' from\ngetting confused by \"$1\" that happens to begin with a '-'.\nSetting random things is done by \"set x random things\"\nimmediately followed by shifting that x away.\n"},{"id":"10295","messageId":"Pine.LNX.4.64.0510191319320.3369@g5.osdl.org","threadId":"2143","inReplyTo":"7vvezt8mvv.fsf@assigned-by-dhcp.cox.net","subject":"Re: Pushing a single tag (ref + object)?","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-10-19T20:23:48Z","receivedAt":"2005-10-19T20:23:48Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Wed, 19 Oct 2005, Junio C Hamano wrote:\n> \n> Your /bin/sh scripting is rotting ;-) That is not a variable.\n\nAhh. No. My /bin/sh scripting just has never been that good to begin with, \nsince there's little reason to do so inside the kernel ;)\n\nI literally didn't understand what \"set\" does. Thx. man-pages to the \nrescue.\n\n\t\tLinus\n"}]}