From 47b3ba29b02ed627c35a653cde75fab322b18bf8 Mon Sep 17 00:00:00 2001 From: "Cromel-PC\\Cromel" Date: Thu, 8 Jun 2017 14:17:42 +0300 Subject: Fixed modules directory path --- storage/filesystem/internal/dotgit/dotgit.go | 2 +- storage/filesystem/internal/dotgit/dotgit_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'storage') 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) } -- cgit