diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-12 15:18:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 15:18:41 +0200 |
commit | 932ced9f55f556de02610425cfa161c35c6a758b (patch) | |
tree | 9b5dd9ad1665fad8424dfbdc5bd93b531f714b09 /submodule_test.go | |
parent | 9b45f468c61a0756dd19d09b64c2b1a88cc99ec5 (diff) | |
parent | 5bcf802213e801c4d52102612f007defa5d0397f (diff) | |
download | go-git-932ced9f55f556de02610425cfa161c35c6a758b.tar.gz |
Merge pull request #339 from mcuadros/status
worktree, status and reset implementation based on merkletrie
Diffstat (limited to 'submodule_test.go')
-rw-r--r-- | submodule_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/submodule_test.go b/submodule_test.go index e367a10..88afa18 100644 --- a/submodule_test.go +++ b/submodule_test.go @@ -26,8 +26,8 @@ func (s *SubmoduleSuite) SetUpTest(c *C) { dir, err := ioutil.TempDir("", "submodule") c.Assert(err, IsNil) - r, err := PlainClone(dir, false, &CloneOptions{ - URL: fmt.Sprintf("file://%s", filepath.Join(path)), + r, err := PlainClone(filepath.Join(dir, "worktree"), false, &CloneOptions{ + URL: fmt.Sprintf("file://%s", path), }) c.Assert(err, IsNil) @@ -74,7 +74,6 @@ func (s *SubmoduleSuite) TestUpdate(c *C) { ref, err := r.Reference(plumbing.HEAD, true) c.Assert(err, IsNil) c.Assert(ref.Hash().String(), Equals, "6ecf0ef2c2dffb796033e5a02219af86ec6584e5") - } func (s *SubmoduleSuite) TestUpdateWithoutInit(c *C) { |