Merge branch 'mh/reporting-broken-refs-from-for-each-ref' into next
commit31af2b8318d4d9cfc406d02a7a67757729b75043
authorJunio C Hamano <gitster@pobox.com>
Tue, 16 Jun 2015 21:43:30 +0000 (16 14:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Jun 2015 21:43:30 +0000 (16 14:43 -0700)
treeb3e6b6ae68488beb75114b656949d24c2ab0999f
parenta9d1c77a068349aa9860e320ebb94b2c2bf82ccb
parent501cf47cddfbf8040b6f9b8ac06d13094a70f729
Merge branch 'mh/reporting-broken-refs-from-for-each-ref' into next

"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