aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/dotgit/dotgit_test.go
diff options
context:
space:
mode:
authorWes Morgan <wesmorgan@icloud.com>2020-04-06 13:58:57 -0600
committerWes Morgan <wesmorgan@icloud.com>2020-04-06 13:58:57 -0600
commit786d5f55e98c70b66bc792d73d3ee4357ba04b88 (patch)
tree1c3fd6c858c58600ff7b8032836f32f5c23dd231 /storage/filesystem/dotgit/dotgit_test.go
parent231a188e4899cc8a76fd0ca914b9fa5fe9b3175b (diff)
downloadgo-git-786d5f55e98c70b66bc792d73d3ee4357ba04b88.tar.gz
Fix dotgit tests
Diffstat (limited to 'storage/filesystem/dotgit/dotgit_test.go')
-rw-r--r--storage/filesystem/dotgit/dotgit_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/filesystem/dotgit/dotgit_test.go b/storage/filesystem/dotgit/dotgit_test.go
index cf81c23..d57ff15 100644
--- a/storage/filesystem/dotgit/dotgit_test.go
+++ b/storage/filesystem/dotgit/dotgit_test.go
@@ -332,7 +332,7 @@ func (s *SuiteDotGit) TestConfig(c *C) {
fs := fixtures.Basic().ByTag(".git").One().DotGit()
dir := New(fs)
- file, err := dir.Config()
+ file, err := dir.LocalConfig()
c.Assert(err, IsNil)
c.Assert(filepath.Base(file.Name()), Equals, "config")
}
@@ -345,13 +345,13 @@ func (s *SuiteDotGit) TestConfigWriteAndConfig(c *C) {
fs := osfs.New(tmp)
dir := New(fs)
- f, err := dir.ConfigWriter()
+ f, err := dir.LocalConfigWriter()
c.Assert(err, IsNil)
_, err = f.Write([]byte("foo"))
c.Assert(err, IsNil)
- f, err = dir.Config()
+ f, err = dir.LocalConfig()
c.Assert(err, IsNil)
cnt, err := ioutil.ReadAll(f)