diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-11-04 08:07:09 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-08 11:34:42 -0500 |
commit | 031954d443668f6ea771e389c4137628d242c2d8 (patch) | |
tree | b343866cad8c17f8856864bf2b056485930ae8a2 /builtin | |
parent | combine_notes_cat_sort_uniq(): sort and dedup lines all at once (diff) | |
download | tgif-031954d443668f6ea771e389c4137628d242c2d8.tar.xz |
notes: fix handling of colon-separated values
The substrings output by strbuf_split() include the ':' delimiters.
When processing GIT_NOTES_DISPLAY_REF and GIT_NOTES_REWRITE_REF, strip
off the delimiter character *before* checking whether the substring is
empty rather than after, so that empty strings within the list are
also skipped.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Acked-by: Johan Herland <johan@herland.net>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions