aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/test/receive_pack.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/test/receive_pack.go')
-rw-r--r--plumbing/transport/test/receive_pack.go4
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)