aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport
diff options
context:
space:
mode:
authorArieh Schneier <15041913+AriehSchneier@users.noreply.github.com>2023-07-02 22:51:41 +1000
committerArieh Schneier <15041913+AriehSchneier@users.noreply.github.com>2023-07-02 22:51:41 +1000
commit025e1311f8473f65facf8cffeccc11e39466db4a (patch)
tree9eb4595171862dbbf92c88de57bc410bdbc7b12c /plumbing/transport
parent99ccca6bc543f88a18df50763d5fc13808e053e4 (diff)
downloadgo-git-025e1311f8473f65facf8cffeccc11e39466db4a.tar.gz
plumbing: packp, A request is not empty if it contains shallows. Fixes #328
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
Diffstat (limited to 'plumbing/transport')
-rw-r--r--plumbing/transport/internal/common/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/internal/common/common.go b/plumbing/transport/internal/common/common.go
index 99e0850..5fdf425 100644
--- a/plumbing/transport/internal/common/common.go
+++ b/plumbing/transport/internal/common/common.go
@@ -232,7 +232,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() && len(req.Shallows) == 0 {
+ if req.IsEmpty() {
return nil, transport.ErrEmptyUploadPackRequest
}