From 8d6fa2ede7dbb108951af24bde99733781bf0a85 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Thu, 13 Aug 2015 11:08:10 -0700 Subject: [PATCH] dont put newlines in refs json output License: MIT Signed-off-by: Jeromy --- core/commands/refs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/commands/refs.go b/core/commands/refs.go index c42e0c42e..1a015e2d8 100644 --- a/core/commands/refs.go +++ b/core/commands/refs.go @@ -135,7 +135,7 @@ Note: list all refs recursively with -r. return nil, errors.New(obj.Err) } - return strings.NewReader(obj.Ref), nil + return strings.NewReader(obj.Ref + "\n"), nil } return &cmds.ChannelMarshaler{ @@ -322,7 +322,6 @@ func (rw *RefWriter) WriteEdge(from, to key.Key, linkname string) error { default: s += to.Pretty() } - s += "\n" rw.out <- &RefWrapper{Ref: s} return nil