Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4450

Git repository cleanup for missing tags and redundent branches

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Today I wanted to do a comparison between the 1.4.20 and 1.4.19 release and found that most of the 1.4.x release tags are missing.

      Specifically there are branches for all of the releases but the 1.4.1 through 1.4.19 releases are not tagged.

      There may be some others that have branches but no tag. I think the current released branches (possibly an artifact from the subversion conversion) should be replaced with signed tags and the branches deleted.

      The second part is that the naming of recent releases is different from before.

      These are the tag names for the 3 most recent releases:

      release/wicket-1.5.4
      release/wicket-1.5.5
      release/wicket-1.4.20

      previous releases just have wicket-1.x.y like wicket-1.5.3

      I think it would be better if the release tag format is consistent. So either retag these 3 releases with the old format or retag the old style tags with the new style tag. There are ways to force the tag date to align with the original commit date (this is described in the git help tag man page).

      I did a bit of testing on this and I think a command like this can be used to create the new tags:
      git branch -r | grep origin | grep wicket-1.[345].[0-9]*$ | grep -v .x | while read BRANCH; do TAG=`basename $BRANCH`; git tag -s -m "tag $TAG release" "$TAG" "$BRANCH"; done;

      There should be some way to cache the gpg passphrase but I haven't found it yet. It may be that a custom script is needed or some patch to the git tag command itself to take in a file containing the pass phrase.

      Attachments

        Activity

          People

            dashorst Martijn Dashorst
            michael.ocleirigh Michael O'Cleirigh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: