aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-01-30 11:27:11 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-30 11:27:11 +0100
commitd24e1e9a69c2082763db51959121d3936e621658 (patch)
treec78f9b87e4edb278e4709d9d0b0282e43423031a /repository_test.go
parenta052498f23198ad1f2e9ca8f9943d2a48e274c06 (diff)
downloadgo-git-d24e1e9a69c2082763db51959121d3936e621658.tar.gz
Repository.Worktree, removing custom fs
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/repository_test.go b/repository_test.go
index 95cf12f..ead0aa1 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -747,23 +747,14 @@ func (s *RepositorySuite) TestObjectNotFound(c *C) {
func (s *RepositorySuite) TestWorktree(c *C) {
def := memoryfs.New()
r, _ := Init(memory.NewStorage(), def)
- w, err := r.Worktree(nil)
+ w, err := r.Worktree()
c.Assert(err, IsNil)
c.Assert(w.fs, Equals, def)
}
-func (s *RepositorySuite) TestWorktreeAlternative(c *C) {
- r, _ := Init(memory.NewStorage(), memoryfs.New())
-
- alt := memoryfs.New()
- w, err := r.Worktree(alt)
- c.Assert(err, IsNil)
- c.Assert(w.fs, Equals, alt)
-}
-
func (s *RepositorySuite) TestWorktreeBare(c *C) {
r, _ := Init(memory.NewStorage(), nil)
- w, err := r.Worktree(nil)
+ w, err := r.Worktree()
c.Assert(err, Equals, ErrIsBareRepository)
c.Assert(w, IsNil)
}