Notify.pm: avoid rev-list hash..0000 on ref deletions
commitc9d315a8f6fafbeadc9ff437c128146c24e7c82a
authorKyle J. McKay <mackyle@gmail.com>
Thu, 22 Aug 2013 06:00:48 +0000 (21 23:00 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 22 Aug 2013 06:00:48 +0000 (21 23:00 -0700)
tree030f4ad838a521d2c5c0a8bc61390cad97c5544f
parentda2257edf6c292bd4e67a9781bae35344b570c50
Notify.pm: avoid rev-list hash..0000 on ref deletions

When a ref change happens that deletes a ref, do not attempt to list
the revisions in the range from the old hash value through hash value
0000000000000000000000000000000000000000 since that will generate an
error and not produce any commits anyway.  Instead simply return an
empty list in this case.

There is already a special case for the reverse that handles the
initial push of a new ref so the range from the empty hash value
0000000000000000000000000000000000000000 to the new ref is never
passed to git rev-list.
Girocco/Notify.pm