Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
527f8972
Commit
527f8972
authored
Mar 06, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unmarshalling JSON from the command line
parent
379ec7d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
go/cmd/gitaly-receive-pack/main.go
go/cmd/gitaly-receive-pack/main.go
+1
-1
go/cmd/gitaly-upload-archive/main.go
go/cmd/gitaly-upload-archive/main.go
+1
-1
go/cmd/gitaly-upload-pack/main.go
go/cmd/gitaly-upload-pack/main.go
+1
-1
No files found.
go/cmd/gitaly-receive-pack/main.go
View file @
527f8972
...
...
@@ -28,7 +28,7 @@ func main() {
func
deserialize
(
requestJSON
string
)
(
*
pb
.
SSHReceivePackRequest
,
error
)
{
var
request
pb
.
SSHReceivePackRequest
if
err
:=
json
.
Unmarshal
([]
byte
(
requestJSON
),
request
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
([]
byte
(
requestJSON
),
&
request
);
err
!=
nil
{
return
nil
,
err
}
return
&
request
,
nil
...
...
go/cmd/gitaly-upload-archive/main.go
View file @
527f8972
...
...
@@ -28,7 +28,7 @@ func main() {
func
deserialize
(
argumentJSON
string
)
(
*
pb
.
SSHUploadArchiveRequest
,
error
)
{
var
request
pb
.
SSHUploadArchiveRequest
if
err
:=
json
.
Unmarshal
([]
byte
(
argumentJSON
),
request
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
([]
byte
(
argumentJSON
),
&
request
);
err
!=
nil
{
return
nil
,
err
}
return
&
request
,
nil
...
...
go/cmd/gitaly-upload-pack/main.go
View file @
527f8972
...
...
@@ -28,7 +28,7 @@ func main() {
func
deserialize
(
requestJSON
string
)
(
*
pb
.
SSHUploadPackRequest
,
error
)
{
var
request
pb
.
SSHUploadPackRequest
if
err
:=
json
.
Unmarshal
([]
byte
(
requestJSON
),
request
);
err
!=
nil
{
if
err
:=
json
.
Unmarshal
([]
byte
(
requestJSON
),
&
request
);
err
!=
nil
{
return
nil
,
err
}
return
&
request
,
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