Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59198 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51205 invoked from network); 29 Mar 2012 06:45:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Mar 2012 06:45:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.123 smtp123.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.123] ([67.192.241.123:43824] helo=smtp123.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/2C-30362-115047F4 for ; Thu, 29 Mar 2012 01:45:38 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id B9B7778408 for ; Thu, 29 Mar 2012 02:45:34 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp2.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 605A478351 for ; Thu, 29 Mar 2012 02:45:34 -0400 (EDT) Message-ID: <4F74050D.3060208@sugarcrm.com> Date: Wed, 28 Mar 2012 23:45:33 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: tag rename & pushes From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! This message is for anybody that is going to create tags in PHP's git repo. If you are not going to do that ever, you may skip this message. As you probably know, we recently made mass rename of tags from something like PHP-4.1.2-RC1 to php-4.1.2RC1. However, turns out that git does not delete old tags from local repositories when they are deleted/changed on remote. What this leads to is that if you ever fetched old tags, they are with you forever unless you delete them manually (see below about that). Please see more discussion about the topic here: http://stackoverflow.com/q/1841341/214196 http://thread.gmane.org/gmane.comp.version-control.git/168833 So what happened today is that I created a tag for 5.4.1RC1, and pushed it to the remote repo. Unknown to me, old tags left from before the rename were still sitting in my repo, and came out of the woods when the push was done, resulting to massive spam on php-cvs list and major embarrassment for me. I'd like to apologize for inconvenience caused and would propose for everybody that has push access to check their tags (git tag -l) and if there are any old tags, remove them. As far as I understand the best recipe is to do this: git tag -l | xargs git tag -d # This will delete all local tags git fetch # This will reimport tags from remote repo If anybody has better recipe on how to do it, please share. In any case, if you are ever going to tag PHP repo, please check your tag list and see if there are no stale ones left. I think you can also push single tag with "git push tag" but I'm not sure about the exact syntax. Git gurus are welcome to chime in. Most people (including me) always use push --tags, but the danger in that is obvious now so please learn from my fail and be careful :) -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227