Skip to content

refs: handle zero oid for pseudorefs

Martin Ågren git 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v11 patch 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3refs.c: refer to "object ID", not "sha1", in error messagesrefs.c+4 -20 replies
2/3t1400: add tests around adding/deleting pseudorefst/t1400-update-ref.sh+60 -00 replies
3/3refs: handle zero oid for pseudorefsrefs.c t/t1400-update-ref.sh+15 -50 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchRafael Ascensão
1/3
2/3
3/3Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] refs: handle zero oid for pseudorefs
Quoted 9 lines · Martin Ågren
Quoted 3 lines · Michael Haggerty

Thanks for the patch. This looks good to me. But it it seems that the test coverage related to pseudorefs is still not great. Ideally, all of the following combinations should be tested:

Thank you for your comments. I was not able to find much pseudoref-testing. I think what I should do is a patch 1/2 adding the tests you outlined (some will be expected failures), then turn this patch into a patch 2/2.

Well, it turned into three patches. One to move away from "sha1" in some error messages before spreading them to the test suite, then one to add the tests, then one for the actual fix.

Martin

Martin Ågren (3):
refs.c: refer to "object ID", not "sha1", in error messages
t1400: add tests around adding/deleting pseudorefs
refs: handle zero oid for pseudorefs

 t/t1400-update-ref.sh | 60 +++++++++++++++++++++++++++++++++++++++++++
 refs.c                | 22 ++++++++++++----
 2 files changed, 77 insertions(+), 5 deletions(-)
Signature · 1 line
2.17.0