aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-13 03:26:16 -0700
committerGitHub <noreply@github.com>2017-07-13 03:26:16 -0700
commit6b3a6df29920d39b8308924b3b84178226b56224 (patch)
tree177feac66c60cea9e5fd4f7e24c49f92bd544ee3 /storage
parentaf9c6ce281419fddddc3653227326ed352ac4bfd (diff)
parent47b3ba29b02ed627c35a653cde75fab322b18bf8 (diff)
downloadgo-git-6b3a6df29920d39b8308924b3b84178226b56224.tar.gz
Merge pull request #414 from Cromel/modules_dir
Fixed modules directory path
Diffstat (limited to 'storage')
-rw-r--r--storage/filesystem/internal/dotgit/dotgit.go2
-rw-r--r--storage/filesystem/internal/dotgit/dotgit_test.go2
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)
}