Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
8d6fa2ed
Commit
8d6fa2ed
authored
Aug 13, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont put newlines in refs json output
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
ace06b47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
core/commands/refs.go
core/commands/refs.go
+1
-2
No files found.
core/commands/refs.go
View file @
8d6fa2ed
...
@@ -135,7 +135,7 @@ Note: list all refs recursively with -r.
...
@@ -135,7 +135,7 @@ Note: list all refs recursively with -r.
return
nil
,
errors
.
New
(
obj
.
Err
)
return
nil
,
errors
.
New
(
obj
.
Err
)
}
}
return
strings
.
NewReader
(
obj
.
Ref
),
nil
return
strings
.
NewReader
(
obj
.
Ref
+
"
\n
"
),
nil
}
}
return
&
cmds
.
ChannelMarshaler
{
return
&
cmds
.
ChannelMarshaler
{
...
@@ -322,7 +322,6 @@ func (rw *RefWriter) WriteEdge(from, to key.Key, linkname string) error {
...
@@ -322,7 +322,6 @@ func (rw *RefWriter) WriteEdge(from, to key.Key, linkname string) error {
default
:
default
:
s
+=
to
.
Pretty
()
s
+=
to
.
Pretty
()
}
}
s
+=
"
\n
"
rw
.
out
<-
&
RefWrapper
{
Ref
:
s
}
rw
.
out
<-
&
RefWrapper
{
Ref
:
s
}
return
nil
return
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment