Commit 8d6fa2ed authored by Jeromy's avatar Jeromy

dont put newlines in refs json output

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent ace06b47
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment