File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,14 @@ func (h *GitopiaHandler) Push(remote *core.Remote, refsToPush []core.RefToPush)
269269 var deleteBranches , deleteTags []string
270270 var res []string
271271
272+ var packfileCid string
273+ packfileRes , err := h .storageClient .RepositoryPackfile (context .Background (), & storagetypes.QueryRepositoryPackfileRequest {
274+ RepositoryId : h .remoteRepository .Id ,
275+ })
276+ if err == nil {
277+ packfileCid = packfileRes .Packfile .Cid
278+ }
279+
272280 for _ , ref := range refsToPush {
273281 if ref .Local == "" {
274282 if strings .HasPrefix (ref .Remote , branchPrefix ) {
@@ -365,14 +373,6 @@ func (h *GitopiaHandler) Push(remote *core.Remote, refsToPush []core.RefToPush)
365373 }
366374 }
367375
368- var packfileCid string
369- packfileRes , err := h .storageClient .RepositoryPackfile (context .Background (), & storagetypes.QueryRepositoryPackfileRequest {
370- RepositoryId : h .remoteRepository .Id ,
371- })
372- if err == nil {
373- packfileCid = packfileRes .Packfile .Cid
374- }
375-
376376 var msg []sdk.Msg
377377 if len (setBranches ) > 0 {
378378 msg = append (msg , gitopiatypes .NewMsgMultiSetBranch (h .wallet .Address (), gitopiatypes.RepositoryId {
You can’t perform that action at this time.
0 commit comments