{"thread":{"id":"34033","subject":"deletion of branch seems to modify tag as well?","startedAt":"2013-06-05T15:26:18Z","lastAt":"2013-06-05T15:53:47Z","messageCount":3,"participants":["Lyons, Roy","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"219455","messageId":"58EAA08AF8232344ADDB2E31D4996BFD39F271BA@SMRPEXCHIDAG2.prod.ad.merc.chicago.cme.com","threadId":"34033","inReplyTo":null,"subject":"deletion of branch seems to modify tag as well?","fromName":"Lyons, Roy","fromEmail":"roy.lyons@cmegroup.com","sentAt":"2013-06-05T15:26:18Z","receivedAt":"2013-06-05T15:26:18Z","isPatch":false,"sender":{"key":"roy.lyons@cmegroup.com","avatar":null},"body":"$ git push origin :ABRANCHNAME\nremote: Firing Pre - receive hook\nremote:\nremote:\nremote: Firing Post receive hook\nremote:\nremote: Branch is ABRANCHNAME -- not creating Trigger file since this is not _int branch\nremote: error: Trying to write ref refs/tags/ABRANCHNAME!SN-BL-20130605_100513_04363 with nonexistent object 0000000000000000000000000000000000000000\nremote: fatal: refs/tags/ABRANCHNAME!SN-BL-20130605_100513_04363: cannot update the ref\nTo ssh://git@ourgitserver/repositoryname.git\n- [deleted] ABRANCHNAME\n\n\nI would not expect this behavior.  Is git attempting to modify the tags associated to the HEAD commit on the branch in addition to the branch?   If so, I would like to consider this a bug report...\n\n\n\nThanks,\n\nRoy Lyons\n"},{"id":"219457","messageId":"20130605155124.GB8664@sigill.intra.peff.net","threadId":"34033","inReplyTo":"58EAA08AF8232344ADDB2E31D4996BFD39F271BA@SMRPEXCHIDAG2.prod.ad.merc.chicago.cme.com","subject":"Re: deletion of branch seems to modify tag as well?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-05T15:51:24Z","receivedAt":"2013-06-05T15:51:24Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jun 05, 2013 at 03:26:18PM +0000, Lyons, Roy wrote:\n\n> $ git push origin :ABRANCHNAME\n> remote: Firing Pre - receive hook\n> remote:\n> remote:\n> remote: Firing Post receive hook\n> remote:\n> remote: Branch is ABRANCHNAME -- not creating Trigger file since this is not _int branch\n> remote: error: Trying to write ref refs/tags/ABRANCHNAME!SN-BL-20130605_100513_04363 with nonexistent object 0000000000000000000000000000000000000000\n> remote: fatal: refs/tags/ABRANCHNAME!SN-BL-20130605_100513_04363: cannot update the ref\n> To ssh://git@ourgitserver/repositoryname.git\n> - [deleted] ABRANCHNAME\n> \n> I would not expect this behavior.  Is git attempting to modify the\n> tags associated to the HEAD commit on the branch in addition to the\n> branch?   If so, I would like to consider this a bug report...\n\nI do not think git is doing anything of the sort. The output you see\nabove comes from custom hooks on the server. We cannot say for certain\nwithout seeing the hook's code, but it looks like the post-receive hook\nis trying to create a tag to point to the tip of every push, but whoever\nwrote the hook did not take into account branch deletions (and the fact\nthat you cannot create a tag pointing at a deletion).\n\n-Peff\n"},{"id":"219459","messageId":"58EAA08AF8232344ADDB2E31D4996BFD39F27291@SMRPEXCHIDAG2.prod.ad.merc.chicago.cme.com","threadId":"34033","inReplyTo":"20130605155124.GB8664@sigill.intra.peff.net","subject":"Re: deletion of branch seems to modify tag as well?","fromName":"Lyons, Roy","fromEmail":"roy.lyons@cmegroup.com","sentAt":"2013-06-05T15:53:47Z","receivedAt":"2013-06-05T15:53:47Z","isPatch":false,"sender":{"key":"roy.lyons@cmegroup.com","avatar":null},"body":"Excellent response.  I had not even considered that the hook for creating\nthese tags would be in the mix.\n\nI withdraw my bug report happily :)\n\n\nThanks,\n\nRoy Lyons\n\n\n\n\n\nOn 6/5/13 10:51 AM, \"Jeff King\" <peff@peff.net> wrote:\n\n>On Wed, Jun 05, 2013 at 03:26:18PM +0000, Lyons, Roy wrote:\n>\n>> $ git push origin :ABRANCHNAME\n>> remote: Firing Pre - receive hook\n>> remote:\n>> remote:\n>> remote: Firing Post receive hook\n>> remote:\n>> remote: Branch is ABRANCHNAME -- not creating Trigger file since this\n>>is not _int branch\n>> remote: error: Trying to write ref\n>>refs/tags/ABRANCHNAME!SN-BL-20130605_100513_04363 with nonexistent\n>>object 0000000000000000000000000000000000000000\n>> remote: fatal: refs/tags/ABRANCHNAME!SN-BL-20130605_100513_04363:\n>>cannot update the ref\n>> To ssh://git@ourgitserver/repositoryname.git\n>> - [deleted] ABRANCHNAME\n>> \n>> I would not expect this behavior.  Is git attempting to modify the\n>> tags associated to the HEAD commit on the branch in addition to the\n>> branch?   If so, I would like to consider this a bug report...\n>\n>I do not think git is doing anything of the sort. The output you see\n>above comes from custom hooks on the server. We cannot say for certain\n>without seeing the hook's code, but it looks like the post-receive hook\n>is trying to create a tag to point to the tip of every push, but whoever\n>wrote the hook did not take into account branch deletions (and the fact\n>that you cannot create a tag pointing at a deletion).\n>\n>-Peff\n"}]}