[postgis-devel] Duplicate tags appearing in postgis git repo

John Harvey john.harvey at crunchydata.com
Fri May 19 07:17:38 PDT 2017


Hi strk,

Thanks for the fix!  It is definitely cleaner now (I can confirm that the
quote marks are gone).

Unfortunately, I've found a secondary issue.
Some tags have now moved with the new method of tagging.

Below is the complete list of tags that have moved:

refs/tags/2.0.3:
from 02d28254bf3437a13be5cbab9012302684794572
to   a3b3de2840ed773a9cd5fc2d7575a0b0cedacb08

refs/tags/2.1.0beta1:
from dd1d97cd2c2bd53b1ccacf122f35121196b9889d
to   d80c727c9748d04bc7027dede60137c5656ed909

refs/tags/2.1.3:
from f3ec236dca1151b756a1b9bdbe8256f07595c01c
to   9e63c55cc0968b991c8893f086c4bb7e81133ffb

refs/tags/2.1.6:
from 4771ab13d58bf41cffbe4f25b951278dc2de90fd
to   5bf45bc83b5b5e01afc8022d229d8f6987ef1226

refs/tags/2.1.7:
from 719d4afebe6d735fa080c98ecc83cafccddea3d8
to   478b1f9267fbec154b681bb740774c44bd20662e

refs/tags/2.2.0:
from 142fe43e2c73af4cdf0fcfe3d3f4cf335fc91047
to   04baae8928e98e2efab49b2b5d9662c0b2b3739e

refs/tags/2.2.0rc1:
from b9fbdaeb2b88767bf4002a8cfe00523e3d47ccef
to   443882c0517384dac0053584742eb2fda5089b96

If I were to make a guess, it appears that the new tagging method applies
tags on the latest commit of certain branches (at least that's how it
appears while looking at the git-tree).  However, such an algorithm would
not take into account the case where tags were applied but yet further
commits occurred along those branches after-the-fact.  I haven't seen the
code, though-- this is just a guess from looking at the tree itself.

I'm guessing that this might be an issue.

Regards,
  -John


On Thu, May 18, 2017 at 4:00 PM, Sandro Santilli <strk at kbt.io> wrote:

> On Wed, May 17, 2017 at 04:29:37PM -0400, John Harvey wrote:
>
> > Every tag seems to be duplicated, but with single-quotes around them.
> > Example:
> > 22140385fe341da6c7df020abc245efc00dba3c2 refs/tags/'2.3.2'
> > 22140385fe341da6c7df020abc245efc00dba3c2 refs/tags/2.3.2
>
> Thanks for the report. Problem fixed with this change:
>
>     https://git.osgeo.org/gogs/postgis/repository-sync-scripts/commit/
> ae8f95154311e9a5e6df8a7517f33615a032117d
>
> And mess cleaned up with this:
>
>   git remote | while read remote; do
>     git ls-remote --tags $remote | grep "'" |
>         awk '{print $2}' | sed 's/^/:/' | tr -s '\n' '\0' |
>         xargs -0 git push $remote;
>   done
>
> Let me know if you find any other issue with the
> [CodeMirrors](http://trac.osgeo.org/postgis/wiki/CodeMirrors)
>
> --strk;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20170519/5cb5e8c7/attachment.html>


More information about the postgis-devel mailing list