diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-11 06:37:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 06:37:32 -0700 |
commit | d42ecf655db7969fdaaa3e65be18e0c9be7ddb8f (patch) | |
tree | 7691e5817dee02594904786c7a9f3f6a990b39d0 /plumbing/transport/test/receive_pack.go | |
parent | 09cd5ccfd384be79e8c49d0d0bccd22589098809 (diff) | |
parent | 09f5f2a35f0f4c42b2def0642540f32e59fdeeb3 (diff) | |
download | go-git-d42ecf655db7969fdaaa3e65be18e0c9be7ddb8f.tar.gz |
Merge pull request #472 from smola/fix-caps-delete-refs
improve delete support on push
Diffstat (limited to 'plumbing/transport/test/receive_pack.go')
-rw-r--r-- | plumbing/transport/test/receive_pack.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plumbing/transport/test/receive_pack.go b/plumbing/transport/test/receive_pack.go index bb1c58a..15172c8 100644 --- a/plumbing/transport/test/receive_pack.go +++ b/plumbing/transport/test/receive_pack.go @@ -308,6 +308,10 @@ func (s *ReceivePackSuite) testSendPackDeleteReference(c *C) { req.Capabilities.Set(capability.ReportStatus) } + if !ar.Capabilities.Supports(capability.DeleteRefs) { + c.Fatal("capability delete-refs not supported") + } + c.Assert(r.Close(), IsNil) s.receivePack(c, s.Endpoint, req, nil, false) |