diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-13 03:26:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 03:26:16 -0700 |
commit | 6b3a6df29920d39b8308924b3b84178226b56224 (patch) | |
tree | 177feac66c60cea9e5fd4f7e24c49f92bd544ee3 | |
parent | af9c6ce281419fddddc3653227326ed352ac4bfd (diff) | |
parent | 47b3ba29b02ed627c35a653cde75fab322b18bf8 (diff) | |
download | go-git-6b3a6df29920d39b8308924b3b84178226b56224.tar.gz |
Merge pull request #414 from Cromel/modules_dir
Fixed modules directory path
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit.go | 2 | ||||
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit.go b/storage/filesystem/internal/dotgit/dotgit.go index c48f24c..f3a2308 100644 --- a/storage/filesystem/internal/dotgit/dotgit.go +++ b/storage/filesystem/internal/dotgit/dotgit.go @@ -21,7 +21,7 @@ const ( configPath = "config" indexPath = "index" shallowPath = "shallow" - modulePath = "module" + modulePath = "modules" objectsPath = "objects" packPath = "pack" refsPath = "refs" diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go index 6151c8f..d4cda0e 100644 --- a/storage/filesystem/internal/dotgit/dotgit_test.go +++ b/storage/filesystem/internal/dotgit/dotgit_test.go @@ -466,5 +466,5 @@ func (s *SuiteDotGit) TestSubmodules(c *C) { m, err := dir.Module("basic") c.Assert(err, IsNil) - c.Assert(strings.HasSuffix(m.Root(), m.Join(".git", "module", "basic")), Equals, true) + c.Assert(strings.HasSuffix(m.Root(), m.Join(".git", "modules", "basic")), Equals, true) } |