Merge branch 'mh/reporting-broken-refs-from-for-each-ref' into maint
commit0533a9b70cc768438a817103f02c51bc4f52bf45
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:41:31 +0000 (3 10:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:41:31 +0000 (3 10:41 -0700)
tree1d69e2fd8a639c2ec1c45957c8f4c0b5e02f35a1
parenta94594dcf7522652363773c06e1ff617914dffe8
parent501cf47cddfbf8040b6f9b8ac06d13094a70f729
Merge branch 'mh/reporting-broken-refs-from-for-each-ref' into maint

"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