Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
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
1
Merge Requests
1
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-workhorse
Commits
cd80e2ff
Commit
cd80e2ff
authored
May 03, 2017
by
Alejandro Rodríguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support GL_REPOSITORY from API and pass it to Gitaly on ReceivePack
parent
eacd5b7a
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
321 additions
and
86 deletions
+321
-86
CHANGELOG
CHANGELOG
+3
-0
internal/api/api.go
internal/api/api.go
+3
-0
internal/git/archive.go
internal/git/archive.go
+1
-1
internal/git/blob.go
internal/git/blob.go
+2
-2
internal/git/command.go
internal/git/command.go
+6
-2
internal/git/diff.go
internal/git/diff.go
+1
-1
internal/git/format-patch.go
internal/git/format-patch.go
+1
-1
internal/git/git-http.go
internal/git/git-http.go
+1
-1
internal/git/receive-pack.go
internal/git/receive-pack.go
+1
-1
internal/gitaly/smarthttp.go
internal/gitaly/smarthttp.go
+4
-3
vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION
vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION
+1
-1
vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go
+3
-0
vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go
+226
-25
vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go
+32
-22
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go
+31
-21
vendor/vendor.json
vendor/vendor.json
+5
-5
No files found.
CHANGELOG
View file @
cd80e2ff
...
...
@@ -2,6 +2,9 @@
Formerly known as 'gitlab-git-http-server'.
v2.0.1
- Support GL_REPOSITORY from API and pass it to Gitaly on ReceivePack
v2.0.0
- Fix gRPC stream resource leak !158, !160
...
...
internal/api/api.go
View file @
cd80e2ff
...
...
@@ -70,6 +70,9 @@ type Response struct {
// GL_ID is an environment variable used by gitlab-shell hooks during 'git
// push' and 'git pull'
GL_ID
string
// GL_REPOSITORY is an environment variable used by gitlab-shell hooks during
// 'git push' and 'git pull'
GL_REPOSITORY
string
// RepoPath is the full path on disk to the Git repository the request is
// about
RepoPath
string
...
...
internal/git/archive.go
View file @
cd80e2ff
...
...
@@ -73,7 +73,7 @@ func (a *archive) Inject(w http.ResponseWriter, r *http.Request, sendData string
compressCmd
,
archiveFormat
:=
parseArchiveFormat
(
format
)
archiveCmd
:=
gitCommand
(
""
,
"git"
,
"--git-dir="
+
params
.
RepoPath
,
"archive"
,
"--format="
+
archiveFormat
,
"--prefix="
+
params
.
ArchivePrefix
+
"/"
,
params
.
CommitId
)
archiveCmd
:=
gitCommand
(
""
,
"
"
,
"
git"
,
"--git-dir="
+
params
.
RepoPath
,
"archive"
,
"--format="
+
archiveFormat
,
"--prefix="
+
params
.
ArchivePrefix
+
"/"
,
params
.
CommitId
)
archiveStdout
,
err
:=
archiveCmd
.
StdoutPipe
()
if
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"SendArchive: archive stdout: %v"
,
err
))
...
...
internal/git/blob.go
View file @
cd80e2ff
...
...
@@ -25,13 +25,13 @@ func (b *blob) Inject(w http.ResponseWriter, r *http.Request, sendData string) {
log
.
Printf
(
"SendBlob: sending %q for %q"
,
params
.
BlobId
,
r
.
URL
.
Path
)
sizeOutput
,
err
:=
gitCommand
(
""
,
"git"
,
"--git-dir="
+
params
.
RepoPath
,
"cat-file"
,
"-s"
,
params
.
BlobId
)
.
Output
()
sizeOutput
,
err
:=
gitCommand
(
""
,
"
"
,
"
git"
,
"--git-dir="
+
params
.
RepoPath
,
"cat-file"
,
"-s"
,
params
.
BlobId
)
.
Output
()
if
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"SendBlob: get blob size: %v"
,
err
))
return
}
gitShowCmd
:=
gitCommand
(
""
,
"git"
,
"--git-dir="
+
params
.
RepoPath
,
"cat-file"
,
"blob"
,
params
.
BlobId
)
gitShowCmd
:=
gitCommand
(
""
,
"
"
,
"
git"
,
"--git-dir="
+
params
.
RepoPath
,
"cat-file"
,
"blob"
,
params
.
BlobId
)
stdout
,
err
:=
gitShowCmd
.
StdoutPipe
()
if
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"SendBlob: git cat-file stdout: %v"
,
err
))
...
...
internal/git/command.go
View file @
cd80e2ff
...
...
@@ -10,7 +10,7 @@ import (
var
execCommand
=
exec
.
Command
// Git subprocess helpers
func
gitCommand
(
gl
_id
string
,
name
string
,
args
...
string
)
*
exec
.
Cmd
{
func
gitCommand
(
gl
Id
string
,
glRepository
string
,
name
string
,
args
...
string
)
*
exec
.
Cmd
{
cmd
:=
execCommand
(
name
,
args
...
)
// Start the command in its own process group (nice for signalling)
cmd
.
SysProcAttr
=
&
syscall
.
SysProcAttr
{
Setpgid
:
true
}
...
...
@@ -19,9 +19,13 @@ func gitCommand(gl_id string, name string, args ...string) *exec.Cmd {
fmt
.
Sprintf
(
"HOME=%s"
,
os
.
Getenv
(
"HOME"
)),
fmt
.
Sprintf
(
"PATH=%s"
,
os
.
Getenv
(
"PATH"
)),
fmt
.
Sprintf
(
"LD_LIBRARY_PATH=%s"
,
os
.
Getenv
(
"LD_LIBRARY_PATH"
)),
fmt
.
Sprintf
(
"GL_ID=%s"
,
gl
_i
d
),
fmt
.
Sprintf
(
"GL_ID=%s"
,
gl
I
d
),
fmt
.
Sprintf
(
"GL_PROTOCOL=http"
),
}
if
glRepository
!=
""
{
cmd
.
Env
=
append
(
cmd
.
Env
,
fmt
.
Sprintf
(
"GL_REPOSITORY=%s"
,
glRepository
))
}
// If we don't do something with cmd.Stderr, Git errors will be lost
cmd
.
Stderr
=
os
.
Stderr
return
cmd
...
...
internal/git/diff.go
View file @
cd80e2ff
...
...
@@ -28,7 +28,7 @@ func (d *diff) Inject(w http.ResponseWriter, r *http.Request, sendData string) {
log
.
Printf
(
"SendDiff: sending diff between %q and %q for %q"
,
params
.
ShaFrom
,
params
.
ShaTo
,
r
.
URL
.
Path
)
gitDiffCmd
:=
gitCommand
(
""
,
"git"
,
"--git-dir="
+
params
.
RepoPath
,
"diff"
,
params
.
ShaFrom
,
params
.
ShaTo
)
gitDiffCmd
:=
gitCommand
(
""
,
"
"
,
"
git"
,
"--git-dir="
+
params
.
RepoPath
,
"diff"
,
params
.
ShaFrom
,
params
.
ShaTo
)
stdout
,
err
:=
gitDiffCmd
.
StdoutPipe
()
if
err
!=
nil
{
helper
.
Fail500
(
w
,
r
,
fmt
.
Errorf
(
"SendDiff: create stdout pipe: %v"
,
err
))
...
...
internal/git/format-patch.go
View file @
cd80e2ff
...
...
@@ -29,7 +29,7 @@ func (p *patch) Inject(w http.ResponseWriter, r *http.Request, sendData string)
log
.
Printf
(
"SendPatch: sending patch between %q and %q for %q"
,
params
.
ShaFrom
,
params
.
ShaTo
,
r
.
URL
.
Path
)
gitRange
:=
fmt
.
Sprintf
(
"%s..%s"
,
params
.
ShaFrom
,
params
.
ShaTo
)
gitPatchCmd
:=
gitCommand
(
""
,
"git"
,
"--git-dir="
+
params
.
RepoPath
,
"format-patch"
,
gitRange
,
"--stdout"
)
gitPatchCmd
:=
gitCommand
(
""
,
"
"
,
"
git"
,
"--git-dir="
+
params
.
RepoPath
,
"format-patch"
,
gitRange
,
"--stdout"
)
stdout
,
err
:=
gitPatchCmd
.
StdoutPipe
()
if
err
!=
nil
{
...
...
internal/git/git-http.go
View file @
cd80e2ff
...
...
@@ -79,7 +79,7 @@ func startGitCommand(a *api.Response, stdin io.Reader, stdout io.Writer, action
args
:=
[]
string
{
subCommand
(
action
),
"--stateless-rpc"
}
args
=
append
(
args
,
options
...
)
args
=
append
(
args
,
a
.
RepoPath
)
cmd
=
gitCommand
(
a
.
GL_ID
,
"git"
,
args
...
)
cmd
=
gitCommand
(
a
.
GL_ID
,
a
.
GL_REPOSITORY
,
"git"
,
args
...
)
cmd
.
Stdin
=
stdin
cmd
.
Stdout
=
stdout
...
...
internal/git/receive-pack.go
View file @
cd80e2ff
...
...
@@ -51,7 +51,7 @@ func handleReceivePackWithGitaly(a *api.Response, clientRequest io.Reader, clien
return
fmt
.
Errorf
(
"smarthttp.ReceivePack: %v"
,
err
)
}
if
err
:=
smarthttp
.
ReceivePack
(
&
a
.
Repository
,
a
.
GL_ID
,
clientRequest
,
clientResponse
);
err
!=
nil
{
if
err
:=
smarthttp
.
ReceivePack
(
&
a
.
Repository
,
a
.
GL_ID
,
a
.
GL_REPOSITORY
,
clientRequest
,
clientResponse
);
err
!=
nil
{
return
fmt
.
Errorf
(
"smarthttp.ReceivePack: %v"
,
err
)
}
...
...
internal/gitaly/smarthttp.go
View file @
cd80e2ff
...
...
@@ -35,7 +35,7 @@ func (client *SmartHTTPClient) InfoRefsResponseWriterTo(ctx context.Context, rep
return
&
pbhelper
.
InfoRefsClientWriterTo
{
c
},
nil
}
func
(
client
*
SmartHTTPClient
)
ReceivePack
(
repo
*
pb
.
Repository
,
GlId
string
,
clientRequest
io
.
Reader
,
clientResponse
io
.
Writer
)
error
{
func
(
client
*
SmartHTTPClient
)
ReceivePack
(
repo
*
pb
.
Repository
,
glId
string
,
glRepository
string
,
clientRequest
io
.
Reader
,
clientResponse
io
.
Writer
)
error
{
ctx
,
cancelFunc
:=
context
.
WithCancel
(
context
.
Background
())
defer
cancelFunc
()
...
...
@@ -45,8 +45,9 @@ func (client *SmartHTTPClient) ReceivePack(repo *pb.Repository, GlId string, cli
}
rpcRequest
:=
&
pb
.
PostReceivePackRequest
{
Repository
:
repo
,
GlId
:
GlId
,
Repository
:
repo
,
GlId
:
glId
,
GlRepository
:
glRepository
,
}
if
err
:=
stream
.
Send
(
rpcRequest
);
err
!=
nil
{
...
...
vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION
View file @
cd80e2ff
0.
5.1
0.
7.0
vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go
View file @
cd80e2ff
...
...
@@ -19,6 +19,9 @@ It has these top-level messages:
CommitIsAncestorResponse
CommitDiffRequest
CommitDiffResponse
CommitDeltaRequest
CommitDelta
CommitDeltaResponse
PostReceiveRequest
PostReceiveResponse
FindDefaultBranchNameRequest
...
...
vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go
View file @
cd80e2ff
This diff is collapsed.
Click to expand it.
vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go
View file @
cd80e2ff
...
...
@@ -98,9 +98,10 @@ type PostReceivePackRequest struct {
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
// Raw data to be copied to stdin of 'git receive-pack'
Data
[]
byte
`protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// gl_id becomes env variable GL_ID, used by the Git {pre,post}-receive
// hooks. Should only be present in the first message of the stream.
GlId
string
`protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
// gl_id and gl_repository becomes env variables, used by the Git {pre,post}-receive
// hooks. They should only be present in the first message of the stream.
GlId
string
`protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
GlRepository
string
`protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"`
}
func
(
m
*
PostReceivePackRequest
)
Reset
()
{
*
m
=
PostReceivePackRequest
{}
}
...
...
@@ -129,6 +130,13 @@ func (m *PostReceivePackRequest) GetGlId() string {
return
""
}
func
(
m
*
PostReceivePackRequest
)
GetGlRepository
()
string
{
if
m
!=
nil
{
return
m
.
GlRepository
}
return
""
}
type
PostReceivePackResponse
struct
{
// Raw data from stdout of 'git receive-pack'
Data
[]
byte
`protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
...
...
@@ -455,24 +463,26 @@ var _SmartHTTP_serviceDesc = grpc.ServiceDesc{
func
init
()
{
proto
.
RegisterFile
(
"smarthttp.proto"
,
fileDescriptor5
)
}
var
fileDescriptor5
=
[]
byte
{
// 3
04
bytes of a gzipped FileDescriptorProto
// 3
21
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xb4
,
0x53
,
0x4d
,
0x4b
,
0xc3
,
0x40
,
0x14
,
0x74
,
0x6b
,
0x2d
,
0xf4
,
0x59
,
0xac
,
0xbc
,
0xa2
,
0x0d
,
0x01
,
0xb5
,
0xe4
,
0x20
,
0x39
,
0x68
,
0x28
,
0xf1
,
0x37
,
0x08
,
0x16
,
0x3d
,
0x84
,
0xb5
,
0x05
,
0x6f
,
0x65
,
0x6d
,
0xb6
,
0x69
,
0x30
,
0x76
,
0xe3
,
0xee
,
0x56
,
0xe8
,
0x2f
,
0xf5
,
0xef
,
0x88
,
0x09
,
0xf9
,
0x68
,
0x62
,
0x3c
,
0x28
,
0xde
,
0xc2
,
0x9b
,
0xf7
,
0x66
,
0x26
,
0x33
,
0x2c
,
0xf4
,
0xd5
,
0x2b
,
0x93
,
0x7a
,
0xa5
,
0x75
,
0xec
,
0xc4
,
0x52
,
0x68
,
0x81
,
0x9d
,
0x20
,
0xd4
,
0x2c
,
0xda
,
0x9a
,
0x3d
,
0xb5
,
0x62
,
0x92
,
0xfb
,
0xe9
,
0xd4
,
0xba
,
0x85
,
0xfe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
0x0d
,
0xe3
,
0xa4
,
0x0e
,
0x4e
,
0x49
,
0x47
,
0x64
,
0x4c
,
0xf0
,
0x01
,
0xba
,
0xa5
,
0x73
,
0xe1
,
0xc6
,
0x60
,
0x35
,
0x63
,
0xe3
,
0xb4
,
0x16
,
0x2f
,
0x32
,
0x3f
,
0xb6
,
0xe2
,
0xa7
,
0x72
,
0xf5
,
0x19
,
0x00
,
0x00
,
0xff
,
0xff
,
0x4c
,
0x33
,
0x8a
,
0x1a
,
0x53
,
0x03
,
0x00
,
0x00
,
}
vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go
View file @
cd80e2ff
...
...
@@ -85,8 +85,10 @@ type SSHReceivePackRequest struct {
Repository
*
Repository
`protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
// A chunk of raw data to be copied to 'git upload-pack' standard input
Stdin
[]
byte
`protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
// Contents of GL_ID environment variable for 'git receive-pack'
GlId
string
`protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
// Contents of GL_ID and GL_REPOSITORY environment variables for
// 'git receive-pack'
GlId
string
`protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
GlRepository
string
`protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"`
}
func
(
m
*
SSHReceivePackRequest
)
Reset
()
{
*
m
=
SSHReceivePackRequest
{}
}
...
...
@@ -115,6 +117,13 @@ func (m *SSHReceivePackRequest) GetGlId() string {
return
""
}
func
(
m
*
SSHReceivePackRequest
)
GetGlRepository
()
string
{
if
m
!=
nil
{
return
m
.
GlRepository
}
return
""
}
type
SSHReceivePackResponse
struct
{
// A chunk of raw data from 'git receive-pack' standard output
Stdout
[]
byte
`protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
...
...
@@ -334,23 +343,24 @@ var _SSH_serviceDesc = grpc.ServiceDesc{
func
init
()
{
proto
.
RegisterFile
(
"ssh.proto"
,
fileDescriptor6
)
}
var
fileDescriptor6
=
[]
byte
{
// 284 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xbc
,
0x52
,
0xcd
,
0x4a
,
0xc3
,
0x40
,
0x10
,
0x76
,
0xad
,
0x0d
,
0x74
,
0x1a
,
0x3d
,
0xac
,
0xb5
,
0x84
,
0xa0
,
0x52
,
0x72
,
0xca
,
0x29
,
0x48
,
0xfa
,
0x0c
,
0x42
,
0xbd
,
0xc9
,
0x86
,
0x9e
,
0x6b
,
0xec
,
0x2e
,
0xe9
,
0x62
,
0xe8
,
0xc6
,
0x9d
,
0x49
,
0x69
,
0x41
,
0xdf
,
0xc9
,
0x47
,
0x14
,
0x92
,
0x58
,
0x92
,
0x6a
,
0x8f
,
0xf6
,
0xb6
,
0x33
,
0xdf
,
0xce
,
0xf7
,
0x33
,
0xbb
,
0x30
,
0x40
,
0x5c
,
0x45
,
0x85
,
0x35
,
0x64
,
0xb8
,
0x93
,
0x69
,
0x4a
,
0xf3
,
0x9d
,
0xef
,
0xe2
,
0x2a
,
0xb5
,
0x4a
,
0xd6
,
0xdd
,
0xe0
,
0x05
,
0x46
,
0x49
,
0x32
,
0x9b
,
0x17
,
0xb9
,
0x49
,
0xe5
,
0x73
,
0xba
,
0x7c
,
0x13
,
0xea
,
0xbd
,
0x54
,
0x48
,
0x3c
,
0x06
,
0xb0
,
0xaa
,
0x30
,
0xa8
,
0xc9
,
0xd8
,
0x9d
,
0xc7
,
0x26
,
0x2c
,
0x1c
,
0xc6
,
0x3c
,
0xaa
,
0x29
,
0x22
,
0xb1
,
0x47
,
0x44
,
0xeb
,
0x16
,
0x1f
,
0x41
,
0x1f
,
0x49
,
0xea
,
0xb5
,
0x77
,
0x3e
,
0x61
,
0xa1
,
0x2b
,
0xea
,
0x22
,
0xf8
,
0x80
,
0x9b
,
0x03
,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
,
0xce
,
0x61
,
0xc8
,
0xb7
,
0xc2
,
0xa6
,
0xc6
,
0x66
,
0xb6
,
0x34
,
0xd3
,
0x4e
,
0x3b
,
0xd3
,
0xcd
,
0x56
,
0xd8
,
0xc4
,
0x31
,
0x14
,
0xf8
,
0xfe
,
0x3b
,
0x78
,
0x23
,
0xce
,
0x9e
,
0xf2
,
0x15
,
0x17
,
0xcf
,
0xfc
,
0x57
,
0x26
,
0xc4
,
0x53
,
0xe8
,
0xe5
,
0x32
,
0x15
,
0xcc
,
0x45
,
0x1a
,
0xd0
,
0x6e
,
0x2e
,
0x6f
,
0x19
,
0x5e
,
0xc1
,
0x28
,
0x97
,
0x69
,
0xc3
,
0xa1
,
0xeb
,
0x48
,
0x2f
,
0x97
,
0x5f
,
0xda
,
0xc1
,
0x2b
,
0x4c
,
0x0e
,
0xc3
,
0xfd
,
0xe1
,
0xe3
,
0xc4
,
0xef
,
0x04
,
0x3a
,
0x49
,
0xb2
,
0x40
,
0x0a
,
0xa3
,
0xd6
,
0x8a
,
0xf0
,
0xfc
,
0xb3
,
0xf1
,
0xa7
,
0xdb
,
0xf0
,
0x2f
,
0x8e
,
0xb0
,
0x55
,
0xf4
,
0xe0
,
0x5f
,
0x48
,
0xae
,
0x09
,
0x2e
,
0xe1
,
0xa4
,
0x3d
,
0x1a
,
0x36
,
0xdb
,
0xbe
,
0xef
,
0xc3
,
0xbf
,
0x3c
,
0x46
,
0x37
,
0x65
,
0x1f
,
0xfa
,
0xee
,
0x6c
,
0xe7
,
0x1f
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0xa3
,
0x3d
,
0xb9
,
0xce
,
0xd9
,
0x02
,
0x00
,
0x00
,
}
vendor/vendor.json
View file @
cd80e2ff
...
...
@@ -128,12 +128,12 @@
"revisionTime"
:
"2016-11-17T07:43:51Z"
},
{
"checksumSHA1"
:
"
8+jRNQyKFIBwS222eR6mKOhgXrY
="
,
"checksumSHA1"
:
"
xoChRi6dWPR0Bt78+zius0y/ur4
="
,
"path"
:
"gitlab.com/gitlab-org/gitaly-proto/go"
,
"revision"
:
"
fcdb86aa58b7d3a729b4bb17fef12bf0a3fba131
"
,
"revisionTime"
:
"2017-0
4-25T15:29:29
Z"
,
"version"
:
"v0.
5.1
"
,
"versionExact"
:
"v0.
5.1
"
"revision"
:
"
8967f31f8d73482228a357acba0f1ce3744ceae2
"
,
"revisionTime"
:
"2017-0
5-05T12:14:06
Z"
,
"version"
:
"v0.
7.0
"
,
"versionExact"
:
"v0.
7.0
"
},
{
"checksumSHA1"
:
"GkeSZfXVbtAkBZOrswot19GJZqQ="
,
...
...
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