{"thread":{"id":"31828","subject":"Cloning tags from master","startedAt":"2012-10-15T19:44:53Z","lastAt":"2012-10-16T03:08:13Z","messageCount":2,"participants":["dquince","PJ Weisberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"201285","messageId":"1350330293914-7569301.post@n2.nabble.com","threadId":"31828","inReplyTo":null,"subject":"Cloning tags from master","fromName":"dquince","fromEmail":"devin.quince@troppussoftware.com","sentAt":"2012-10-15T19:44:53Z","receivedAt":"2012-10-15T19:44:53Z","isPatch":false,"sender":{"key":"devin.quince@troppussoftware.com","avatar":null},"body":"I am trying to implement using tags in our build process, but am running into\nan issue with pulling tags from master. My scenario is as follows\nWe decide on a release and I tag master with testtag which has commit\ntesttag-1-gf3b117e\nWhen I make another commit to master and check the tag, I see it as\ntesttag-2-gfb56442\nWhen I try and pull the tag using testtag, it just wants to pull the latest\ncommit to master. \n\nI verified this works in branches other than master, so can this be done\nfrom master or does the tag just follow the head?\n\n\n\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Cloning-tags-from-master-tp7569301.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"201307","messageId":"CAJsNXT=JHds1fxDVYECXhVaRgkgFg6-amGBRy6HQDgxOiUOkkg@mail.gmail.com","threadId":"31828","inReplyTo":"1350330293914-7569301.post@n2.nabble.com","subject":"Re: Cloning tags from master","fromName":"PJ Weisberg","fromEmail":"pj@irregularexpressions.net","sentAt":"2012-10-16T03:08:13Z","receivedAt":"2012-10-16T03:08:13Z","isPatch":false,"sender":{"key":"pj@irregularexpressions.net","avatar":"https://gravatar.com/avatar/aa2c1edcc61b536cc5c9f37fbce084e655446e2309f9818d43f13d47304a602b?d=mp&s=160"},"body":"On Mon, Oct 15, 2012 at 12:44 PM, dquince\n<devin.quince@troppussoftware.com> wrote:\n> I am trying to implement using tags in our build process, but am running into\n> an issue with pulling tags from master. My scenario is as follows\n> We decide on a release and I tag master with testtag which has commit\n> testtag-1-gf3b117e\n> When I make another commit to master and check the tag, I see it as\n> testtag-2-gfb56442\n\nI don't know what you mean by \"check the tag\", but those look like the\noutput of \"git describe\" when HEAD is one or two commits ahead of\ntesttag (with no tags that are closer).\n\n> When I try and pull the tag using testtag, it just wants to pull the latest\n> commit to master.\n\nYou're probably not running \"git pull origin refs/tags/testtag\", but I\nthink that's the only way to \"pull the tag,\" so I don't know what\nyou're doing here.  The tag doesn't include anything that's not part\nof the tag's history, though, so \"pulling\" it won't get the latest\nversion of anything.\n\n> I verified this works in branches other than master, so can this be done\n> from master or does the tag just follow the head?\n\nTags never follow anything.  Once they're created, they stay put.\n\n-PJ\n\nGehm's Corollary to Clark's Law: Any technology distinguishable from\nmagic is insufficiently advanced.\n"}]}