[postgis-tickets] [PostGIS] #4937: No diffs shown in commit email anymore

PostGIS trac at osgeo.org
Thu Jul 1 11:11:56 PDT 2021


#4937: No diffs shown in commit email anymore
------------------------+------------------
 Reporter:  strk        |      Owner:  robe
     Type:  defect      |     Status:  new
 Priority:  medium      |  Milestone:
Component:  management  |    Version:
 Keywords:              |
------------------------+------------------
 Since the introduction of symbolic refs (master == main).
 I think the culprit is in the {{{show_new_revisions}}} function of the
 {{{/osgeo/git/hookscripts/post-receive-email}}}
 script, which tries to find which revisions are not accessible in other
 refs (while not skipping the symbolic refs)

 It's in this snippet:
 {{{
         other_branches=$(git for-each-ref --format='%(refname)'
 refs/heads/ |
             grep -F -v $refname)
         git rev-parse --not $other_branches |
         if [ -z "$custom_showrev" ]
         then
                 git rev-list --pretty --stdin $revspec
         else
                 git rev-list --stdin $revspec |
                 while read onerev
                 do
                         eval $(printf "$custom_showrev" $onerev)
                 done
         fi
 }}}

 This could be fixed once for all in the osgeo git script repository
 for all users.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4937>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list