status: fix null termination with "-b"
authorJeff King <peff@peff.net>
Mon, 7 May 2012 21:02:18 +0000 (17:02 -0400)
committerJeff King <peff@peff.net>
Tue, 8 May 2012 08:51:08 +0000 (04:51 -0400)
commita5985237878481af5fbca349d0d1ad7d6b2d2bcb
tree229ed5444925bc654ddbe1161d97f4af9f83b419
parent3207a3a29179c247d1ee9552511123e426845acb
status: fix null termination with "-b"

When the "-z" option is given to status, we are supposed to
NUL-terminate each record. However, the "-b" code to show
the tracking branch did not respect this, and always ended
with a newline.

Signed-off-by: Jeff King <peff@peff.net>
t/t7508-status.sh
wt-status.c