aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/test/receive_pack.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-11 06:37:32 -0700
committerGitHub <noreply@github.com>2017-07-11 06:37:32 -0700
commitd42ecf655db7969fdaaa3e65be18e0c9be7ddb8f (patch)
tree7691e5817dee02594904786c7a9f3f6a990b39d0 /plumbing/transport/test/receive_pack.go
parent09cd5ccfd384be79e8c49d0d0bccd22589098809 (diff)
parent09f5f2a35f0f4c42b2def0642540f32e59fdeeb3 (diff)
downloadgo-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.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)