Merge branch 'mh/reporting-broken-refs-from-for-each-ref'
commit9d71c5f408dabb94f21891f69de17aa72d4787c3
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2015 19:21:51 +0000 (24 12:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jun 2015 19:21:52 +0000 (24 12:21 -0700)
treed1645bb0714e12e36b3c06300ef39f3d402c770f
parent54a17cdb9c56cec06f48c8e24b58da795fef301f
parent501cf47cddfbf8040b6f9b8ac06d13094a70f729
Merge branch 'mh/reporting-broken-refs-from-for-each-ref'

"git for-each-ref" reported "missing object" for 0{40} when it
encounters a broken ref.  The lack of object whose name is 0{40} is
not the problem; the ref being broken is.

* mh/reporting-broken-refs-from-for-each-ref:
  read_loose_refs(): treat NULL_SHA1 loose references as broken
  read_loose_refs(): simplify function logic
  for-each-ref: report broken references correctly
  t6301: new tests of for-each-ref error handling
builtin/for-each-ref.c
refs.c