diff options
author | Marcus Watkins <marwatk@marcuswatkins.net> | 2021-05-12 14:39:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 22:39:49 +0200 |
commit | 320db9af8ba8b0046e833013504eb07c61a3573c (patch) | |
tree | c7b18c36c8f6a146b1e66fc705373f5632853a5f /plumbing/transport/internal | |
parent | db2bc57350561c4368a8d32c42476699b48d2a09 (diff) | |
download | go-git-320db9af8ba8b0046e833013504eb07c61a3573c.tar.gz |
git: Add support for deepening shallow clones (#311)
Diffstat (limited to 'plumbing/transport/internal')
-rw-r--r-- | plumbing/transport/internal/common/common.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/internal/common/common.go b/plumbing/transport/internal/common/common.go index 75405c7..fdb148f 100644 --- a/plumbing/transport/internal/common/common.go +++ b/plumbing/transport/internal/common/common.go @@ -233,7 +233,7 @@ func (s *session) handleAdvRefDecodeError(err error) error { // UploadPack performs a request to the server to fetch a packfile. A reader is // returned with the packfile content. The reader must be closed after reading. func (s *session) UploadPack(ctx context.Context, req *packp.UploadPackRequest) (*packp.UploadPackResponse, error) { - if req.IsEmpty() { + if req.IsEmpty() && len(req.Shallows) == 0 { return nil, transport.ErrEmptyUploadPackRequest } |