aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorCromel-PC\Cromel <Cromel3@gmail.com>2017-06-08 14:17:42 +0300
committerSantiago M. Mola <santi@mola.io>2017-06-28 08:25:43 +0200
commit47b3ba29b02ed627c35a653cde75fab322b18bf8 (patch)
tree2eab33ff5198b9e0d14ec672d82befdc72cff12a /storage
parentce6f5b7c82fc6c2c4d41880ed6b26f921dd9c1c3 (diff)
downloadgo-git-47b3ba29b02ed627c35a653cde75fab322b18bf8.tar.gz
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)
}