aboutsummaryrefslogtreecommitdiffstats
path: root/remote_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-12-15 13:45:52 +0100
committerGitHub <noreply@github.com>2016-12-15 13:45:52 +0100
commit249c4137f4f34992c9bb6a60954e30a27994add7 (patch)
tree1188a410d368c619548d74798c474e04469eabae /remote_test.go
parentf01fd176ff61a3f37d096939690aa103de054ecc (diff)
downloadgo-git-249c4137f4f34992c9bb6a60954e30a27994add7.tar.gz
storage: shallow storage (#180)
* storage: shallow storage * changes * changes
Diffstat (limited to 'remote_test.go')
-rw-r--r--remote_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/remote_test.go b/remote_test.go
index 8296f8e..5af2e2c 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -124,6 +124,14 @@ func (s *RemoteSuite) TestFetchDepth(c *C) {
r, _ := sto.Reference(exp.Name())
c.Assert(exp.String(), Equals, r.String())
}
+
+ h, err := sto.Shallow()
+ c.Assert(err, IsNil)
+ c.Assert(h, HasLen, 2)
+ c.Assert(h, DeepEquals, []plumbing.Hash{
+ plumbing.NewHash("e8d3ffab552895c19b9fcf7aa264d277cde33881"),
+ plumbing.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
+ })
}
func (s *RemoteSuite) TestFetchWithProgress(c *C) {