[Bug 594498] New: Add check for tags not pushed to a branch to pre-receive-check-policy



http://bugzilla.gnome.org/show_bug.cgi?id=594498

           Summary: Add check for tags not pushed to a branch to
                    pre-receive-check-policy
    Classification: Infrastructure
           Product: sysadmin
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Git
        AssignedTo: sysadmin-maint gnome bugs
        ReportedBy: otaylor redhat com
         QAContact: sysadmin-maint gnome bugs
      GNOME target: ---
     GNOME version: ---


--- Comment #0 from Owen Taylor <otaylor redhat com> 2009-09-08 13:55:33 UTC ---
pre-receive-check-policy should catch the case where someone does 'git push
--tags' and has tags not on any branch.

I'm not sure git can be counted on to push the branches and tags in order with
the branches first for:

 git push origin --tags master

So it makes it a little tricky to do in the shell pre-receive-check-policy - we
have to "look ahead" at all the ref-updates and do the tags first. This might
require writing stdin to a temp file and then processing it twice.

See:

http://mail.gnome.org/archives/gnome-infrastructure/2009-September/msg00007.html

For an example of the problems you can get without this check.

-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact of the bug.
You are watching the assignee of the bug.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]