Skip to content

Commit 404d017

Browse files
committed
Don't return error when packfile does not exist for a new repo
1 parent c855dec commit 404d017

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/git-remote-gitopia/gitopia.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,9 @@ func (h *GitopiaHandler) Push(remote *core.Remote, refsToPush []core.RefToPush)
365365
}
366366
}
367367

368-
packfileRes, err := h.storageClient.RepositoryPackfile(context.Background(), &storagetypes.QueryRepositoryPackfileRequest{
368+
packfileRes, _ := h.storageClient.RepositoryPackfile(context.Background(), &storagetypes.QueryRepositoryPackfileRequest{
369369
RepositoryId: h.remoteRepository.Id,
370370
})
371-
if err != nil {
372-
return nil, err
373-
}
374371

375372
var msg []sdk.Msg
376373
if len(setBranches) > 0 {

0 commit comments

Comments
 (0)