GitLabgitlab-org
cli
main
1//go:build !integration
3package run
5import (
6 "fmt"
7 "os/exec"
8 "testing"
10 "git.sr.ht/~timofurrer/ugh"
11 "github.com/stretchr/testify/assert"
12 "github.com/stretchr/testify/require"
13 "go.uber.org/mock/gomock"
15 gitlab "gitlab.com/gitlab-org/api/client-go/v3"
16 gitlabtesting "gitlab.com/gitlab-org/api/client-go/v3/testing"
18 "gitlab.com/gitlab-org/cli/internal/api"
19 "gitlab.com/gitlab-org/cli/internal/run"
20 "gitlab.com/gitlab-org/cli/internal/testing/cmdtest"
21 "gitlab.com/gitlab-org/cli/test"
22)
24func TestParseVarArg_EmptyKey(t *testing.T) {
25 t.Parallel()
27 for _, input := range []string{":value", " :value"} {
28 _, err := parseVarArg(input)
30 require.EqualError(t, err, "variable key cannot be empty")
31 }
32}
34func TestParseVarArg_TrimsKey(t *testing.T) {
35 t.Parallel()
37 got, err := parseVarArg(" FOO :value")
39 require.NoError(t, err)
40 require.NotNil(t, got.Key)
41 assert.Equal(t, "FOO", *got.Key)
42}
44func TestCIRun(t *testing.T) {
45 tests := []struct {
46 name string
47 cli string
48 expectedRef string
49 expectedOut string
50 expectedErr string
51 setupMock func(tc *gitlabtesting.TestClient, expectedRef string)
52 }{
53 {
54 name: "when running `ci run` without any parameter, defaults to current branch",
55 cli: "",
56 expectedRef: "custom-branch-123",
57 expectedOut: "Created pipeline (id: 123), status: created, ref: custom-branch-123, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
58 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
59 tc.MockPipelines.EXPECT().
60 CreatePipeline("OWNER/REPO", gomock.Any()).
61 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
62 return &gitlab.Pipeline{
63 ID: 123,
64 IID: 123,
65 Status: "created",
66 Ref: *opt.Ref,
67 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
68 }, nil, nil
69 })
70 },
71 },
72 {
73 name: "when running `ci run` with branch parameter, run CI at branch",
74 cli: "-b ci-cd-improvement-399",
75 expectedRef: "ci-cd-improvement-399",
76 expectedOut: "Created pipeline (id: 123), status: created, ref: ci-cd-improvement-399, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
77 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
78 tc.MockPipelines.EXPECT().
79 CreatePipeline("OWNER/REPO", gomock.Any()).
80 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
81 return &gitlab.Pipeline{
82 ID: 123,
83 IID: 123,
84 Status: "created",
85 Ref: *opt.Ref,
86 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
87 }, nil, nil
88 })
89 },
90 },
91 {
92 name: "when running `ci run` with --web opens the browser",
93 cli: "-b web-branch --web",
94 expectedRef: "web-branch",
95 expectedErr: "Opening gitlab.com/OWNER/REPO/-/pipelines/123 in your browser.\n",
96 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
97 tc.MockPipelines.EXPECT().
98 CreatePipeline("OWNER/REPO", gomock.Any()).
99 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
100 return &gitlab.Pipeline{
101 ID: 123,
102 IID: 123,
103 Status: "created",
104 Ref: *opt.Ref,
105 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
106 }, nil, nil
107 })
108 },
109 },
110 {
111 name: "when running `ci run` with variables",
112 cli: "-b main --variables FOO:bar",
113 expectedRef: "main",
114 expectedOut: "Created pipeline (id: 123), status: created, ref: main, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
115 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
116 tc.MockPipelines.EXPECT().
117 CreatePipeline("OWNER/REPO", gomock.Any()).
118 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
119 // Verify variables are passed
120 require.Len(t, *opt.Variables, 1)
121 assert.Equal(t, "FOO", *(*opt.Variables)[0].Key)
122 assert.Equal(t, "bar", *(*opt.Variables)[0].Value)
123 return &gitlab.Pipeline{
124 ID: 123,
125 IID: 123,
126 Status: "created",
127 Ref: *opt.Ref,
128 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
129 }, nil, nil
130 })
131 },
132 },
133 {
134 name: "when running `ci run` with multiple variables",
135 cli: "-b main --variables FOO:bar --variables BAR:xxx",
136 expectedRef: "main",
137 expectedOut: "Created pipeline (id: 123), status: created, ref: main, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
138 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
139 tc.MockPipelines.EXPECT().
140 CreatePipeline("OWNER/REPO", gomock.Any()).
141 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
142 require.Len(t, *opt.Variables, 2)
143 assert.Equal(t, "FOO", *(*opt.Variables)[0].Key)
144 assert.Equal(t, "bar", *(*opt.Variables)[0].Value)
145 assert.Equal(t, "BAR", *(*opt.Variables)[1].Key)
146 assert.Equal(t, "xxx", *(*opt.Variables)[1].Value)
147 return &gitlab.Pipeline{
148 ID: 123,
149 IID: 123,
150 Status: "created",
151 Ref: *opt.Ref,
152 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
153 }, nil, nil
154 })
155 },
156 },
157 {
158 name: "when running `ci run` with variables-env",
159 cli: "-b main --variables-env FOO:bar",
160 expectedRef: "main",
161 expectedOut: "Created pipeline (id: 123), status: created, ref: main, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
162 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
163 tc.MockPipelines.EXPECT().
164 CreatePipeline("OWNER/REPO", gomock.Any()).
165 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
166 require.Len(t, *opt.Variables, 1)
167 assert.Equal(t, "FOO", *(*opt.Variables)[0].Key)
168 assert.Equal(t, "bar", *(*opt.Variables)[0].Value)
169 return &gitlab.Pipeline{
170 ID: 123,
171 IID: 123,
172 Status: "created",
173 Ref: *opt.Ref,
174 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
175 }, nil, nil
176 })
177 },
178 },
179 {
180 name: "when running `ci run` with multiple variables-env",
181 cli: "-b main --variables-env FOO:bar --variables-env BAR:xxx",
182 expectedRef: "main",
183 expectedOut: "Created pipeline (id: 123), status: created, ref: main, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
184 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
185 tc.MockPipelines.EXPECT().
186 CreatePipeline("OWNER/REPO", gomock.Any()).
187 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
188 require.Len(t, *opt.Variables, 2)
189 return &gitlab.Pipeline{
190 ID: 123,
191 IID: 123,
192 Status: "created",
193 Ref: *opt.Ref,
194 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
195 }, nil, nil
196 })
197 },
198 },
199 {
200 name: "when running `ci run` with mixed variables-env and variables",
201 cli: "-b main --variables-env FOO:bar --variables BAR:xxx",
202 expectedRef: "main",
203 expectedOut: "Created pipeline (id: 123), status: created, ref: main, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
204 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
205 tc.MockPipelines.EXPECT().
206 CreatePipeline("OWNER/REPO", gomock.Any()).
207 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
208 require.Len(t, *opt.Variables, 2)
209 return &gitlab.Pipeline{
210 ID: 123,
211 IID: 123,
212 Status: "created",
213 Ref: *opt.Ref,
214 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
215 }, nil, nil
216 })
217 },
218 },
219 {
220 name: "when running `ci run` with untyped input",
221 cli: "-b main -i key1:val1 --input key2:val2",
222 expectedRef: "main",
223 expectedOut: "Created pipeline (id: 123), status: created, ref: main, weburl: https://gitlab.com/OWNER/REPO/-/pipelines/123\n",
224 setupMock: func(tc *gitlabtesting.TestClient, expectedRef string) {
225 tc.MockPipelines.EXPECT().
226 CreatePipeline("OWNER/REPO", gomock.Any()).
227 DoAndReturn(func(pid any, opt *gitlab.CreatePipelineOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Pipeline, *gitlab.Response, error) {
228 // Verify inputs are passed
229 require.NotNil(t, opt.Inputs)
230 assert.Equal(t, gitlab.PipelineInputValue[string]{Value: "val1"}, opt.Inputs["key1"])
231 assert.Equal(t, gitlab.PipelineInputValue[string]{Value: "val2"}, opt.Inputs["key2"])
232 return &gitlab.Pipeline{
233 ID: 123,
234 IID: 123,
235 Status: "created",
236 Ref: *opt.Ref,
237 WebURL: "https://gitlab.com/OWNER/REPO/-/pipelines/123",
238 }, nil, nil
239 })
240 },
241 },
242 }
244 for _, tc := range tests {
245 t.Run(tc.name, func(t *testing.T) {
246 // GIVEN
247 testClient := gitlabtesting.NewTestClient(t)
248 tc.setupMock(testClient, tc.expectedRef)
250 execFunc := cmdtest.SetupCmdForTest(t, NewCmdRun, true,
251 cmdtest.WithGitLabClient(testClient.Client),
252 cmdtest.WithBranch("custom-branch-123"),
253 )
254 restoreCmd := run.SetPrepareCmd(func(cmd *exec.Cmd) run.Runnable {
255 return &test.OutputStub{}
256 })
257 t.Cleanup(restoreCmd)
259 // WHEN
260 out, err := execFunc(tc.cli)
262 // THEN
263 require.NoErrorf(t, err, "error running command `ci run %s`: %v", tc.cli, err)
265 assert.Equal(t, tc.expectedOut, out.OutBuf.String())
266 assert.Equal(t, tc.expectedErr, out.ErrBuf.String())
267 })
268 }
269}
271func TestCIRunMrPipeline(t *testing.T) {
272 tests := []struct {
273 name string
274 cli string
275 expectedOut string
276 expectedErr string
277 mrIid int
278 }{
279 {
280 name: "bare mr flag",
281 cli: "--mr",
282 expectedOut: "Created pipeline (id: 21370), status: created, ref: , weburl: https://gitlab.com/OWNER/REPO/-/pipelines/21370\n",
283 mrIid: 2137,
284 },
285 {
286 name: "mr flag with branch specified",
287 cli: "--mr --branch branchy",
288 expectedOut: "Created pipeline (id: 7350), status: created, ref: , weburl: https://gitlab.com/OWNER/REPO/-/pipelines/7350\n",
289 mrIid: 735,
290 },
291 {
292 name: "mr flag with branch specified & multiple MRs",
293 cli: "--mr --branch my_branch_with_a_myriad_of_mrs",
294 expectedOut: "Created pipeline (id: 12340), status: created, ref: , weburl: https://gitlab.com/OWNER/REPO/-/pipelines/12340\n",
295 mrIid: 1234,
296 },
297 {
298 name: "mr flag with branch specified & no MRs",
299 cli: "--mr --branch branch_without_mrs",
300 expectedErr: "branch_without_mrs",
301 mrIid: 1234,
302 },
303 {
304 name: "MR with variable flag",
305 cli: "--mr --variables key:val",
306 expectedErr: "if any flags in the group [mr variables] are set none of the others can be",
307 mrIid: 1235,
308 },
309 {
310 name: "MR with input flag",
311 cli: "--mr --input key:val",
312 expectedErr: "if any flags in the group [mr input] are set none of the others can be",
313 mrIid: 1236,
314 },
315 }
317 for _, tc := range tests {
318 t.Run(tc.name, func(t *testing.T) {
319 // GIVEN
320 testClient := gitlabtesting.NewTestClient(t)
322 if tc.expectedErr == "" {
323 iid := int64(tc.mrIid)
324 pipelineId := iid * 10
325 testClient.MockMergeRequests.EXPECT().
326 CreateMergeRequestPipeline("OWNER/REPO", iid).
327 Return(&gitlab.PipelineInfo{
328 ID: pipelineId,
329 Status: "created",
330 WebURL: fmt.Sprintf("https://gitlab.com/OWNER/REPO/-/pipelines/%d", pipelineId),
331 }, nil, nil)
332 }
334 api.ListMRs = func(client *gitlab.Client, projectID any, opts *gitlab.ListProjectMergeRequestsOptions, listOpts ...api.CliListMROption) ([]*gitlab.BasicMergeRequest, error) {
335 if *opts.SourceBranch == "custom-branch-123" {
336 return []*gitlab.BasicMergeRequest{
337 {
338 IID: 2137,
339 Author: &gitlab.BasicUser{
340 Username: "Huan Pablo Secundo",
341 },
342 },
343 }, nil
344 }
345 if *opts.SourceBranch == "branchy" {
346 return []*gitlab.BasicMergeRequest{
347 {
348 IID: 735,
349 Author: &gitlab.BasicUser{
350 Username: "Franciszek",
351 },
352 },
353 }, nil
354 }
355 if *opts.SourceBranch == "my_branch_with_a_myriad_of_mrs" {
356 return []*gitlab.BasicMergeRequest{
357 {
358 IID: 1234,
359 Author: &gitlab.BasicUser{
360 Username: "Chris Harms",
361 },
362 },
363 {
364 IID: 666,
365 Author: &gitlab.BasicUser{
366 Username: "Bruce Dickinson",
367 },
368 },
369 }, nil
370 }
371 if *opts.SourceBranch == "branch_without_mrs" {
372 return []*gitlab.BasicMergeRequest{}, nil
373 }
374 return nil, fmt.Errorf("unexpected branch in this mock :(")
375 }
377 factoryOpts := []cmdtest.FactoryOption{
378 cmdtest.WithGitLabClient(testClient.Client),
379 cmdtest.WithBranch("custom-branch-123"),
380 }
382 if tc.cli == "--mr --branch my_branch_with_a_myriad_of_mrs" {
383 c := ugh.New(t)
384 c.Expect(ugh.SelectRegexp("Multiple merge requests exist for this branch")).
385 Do(ugh.SelectIndex(0))
386 factoryOpts = append(factoryOpts, cmdtest.WithConsole(t, c))
387 }
389 execFunc := cmdtest.SetupCmdForTest(t, NewCmdRun, true,
390 factoryOpts...,
391 )
392 restoreCmd := run.SetPrepareCmd(func(cmd *exec.Cmd) run.Runnable {
393 return &test.OutputStub{}
394 })
395 t.Cleanup(restoreCmd)
397 // WHEN
398 out, err := execFunc(tc.cli)
400 // THEN
401 if tc.expectedErr == "" {
402 require.NoErrorf(t, err, "error running command `ci run %s`: %v", tc.cli, err)
404 assert.Contains(t, out.OutBuf.String(), tc.expectedOut)
405 assert.Equal(t, tc.expectedErr, out.ErrBuf.String())
406 } else {
407 require.ErrorContains(t, err, tc.expectedErr)
408 }
409 })
410 }
411}
Diagnostics8 git calls · 208 ms
CallStatusSizeTime0208 ms
discover200185 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=185 git.server.agent=git/2.56.g1891de4-Linux git.server.object_format=sha1 git.server.caps=agent ls-refs fetch server-option object-format git.server.fetch=shallow wait-for-done filter git.protocol.version=2 git.pkt.frames=9 git.pkt.data=7 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=185 git.pkt.payload.max=35
ls-refs20058 KiB · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=59849 git.response.cache=HIT git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=731 git.pkt.data=730 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=59849 git.pkt.payload.max=143 git.ls_refs.count=730 git.ls_refs.head=refs/heads/main
fetchcombine:blob:none+tree:2 · deepen 12004.2 KiB · hit1 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=1 git.response.bytes=4273 git.response.cache=HIT git.response.duration_ms=1 git.fetch.filter=combine:blob:none+tree:2 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=1 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=7 git.pkt.data=5 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=4273 git.pkt.payload.max=4173 git.sideband.band1.bytes=4173 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=11 git.pack.bytes=4173 git.fetch.wide.objects=11 git.fetch.wide.extra_bytes=3930 git.fetch.wide.blobs=0
fetchtree:0 · deepen 1020032 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=1 git.response.bytes=32926 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=0dd7574dce9e385c5c30540e6c15657adc6bdce9 git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=22 git.pkt.data=20 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=32926 git.pkt.payload.max=32046 git.sideband.band1.bytes=32046 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=80 git.pack.bytes=32046 git.pack.ofs_delta=36 git.pack.ref_delta=0 git.pack.chain.max=2 git.pack.trailer=cb0bad5d7ffc514895d8b21c4dd470327f90bc91 git.pack.full=44Open pack map
fetchtree:02001.8 KiB · hit1 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=1857 git.response.cache=HIT git.response.duration_ms=1 git.fetch.filter=tree:0 git.fetch.wants=dce174ff8c632a19d17eea99c8a9b7c37fb2b592 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=1857 git.pkt.payload.max=1830 git.sideband.band1.bytes=1830 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=1830 git.pack.trailer=fb03183b7909876778f740d196d7516811003517Open pack map
fetchtree:0200635 B · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=3 git.response.bytes=635 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=517b073a0d5c32bc4e93f86de74b31d60ff8cf03 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=635 git.pkt.payload.max=608 git.sideband.band1.bytes=608 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=608 git.pack.trailer=178abb9456d874b7fd38fa21ad5cf9ca3ebcccaaOpen pack map
fetchtree:0200135 B · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=198 git.response.bytes=135 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=tree:0 git.fetch.wants=01689565d0aef6a9088d9b739904c4d5fe1b7fbb git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=135 git.pkt.payload.max=108 git.sideband.band1.bytes=108 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=108 git.pack.trailer=7033f661a84564110bda7edbcf34cb3243bcf14eOpen pack map
fetch2002.4 KiB198 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=2422 git.response.cache=MISS git.response.duration_ms=198 git.fetch.wants=5ed5acfa5d0b161f8989ad8b37acd9fbc47b4b6e git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=2422 git.pkt.payload.max=2395 git.sideband.band1.bytes=2395 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://gitlab.com/gitlab-org/cli
- Ref
- refs/heads/main
- Commit
- 0dd7574dce9e385c5c30540e6c15657adc6bdce9
- cf-ray
- a5e2cf50ff8defad
- Request
- d2d388ac…
- Protocol
- v2 · sha1
- Agent
- git/2.56.g1891de4-Linux
- Filter
- advertised
- Fetch
- shallow wait-for-done filter
- Capabilities
- agent ls-refs fetch server-option object-format