aboutsummaryrefslogtreecommitdiffstats
path: root/repository_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-06-17 12:53:39 +0200
committerGitHub <noreply@github.com>2017-06-17 12:53:39 +0200
commit86f6ba1dea8972df7c017e01ddb2c097892bc220 (patch)
treea7add5abd733fbc4362d80eecd5fa16f23a21901 /repository_test.go
parentbf3a92052f715c507ace0cb9f2b7fb358f623abc (diff)
parentaba32ceed59d77c84038fa421b230e1ea76a5e6b (diff)
downloadgo-git-86f6ba1dea8972df7c017e01ddb2c097892bc220.tar.gz
Merge pull request #369 from smola/windows
Windows support
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/repository_test.go b/repository_test.go
index deb3f58..a1b92ae 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -51,16 +51,16 @@ func (s *RepositorySuite) TestInitNonStandardDotGit(c *C) {
c.Assert(err, IsNil)
c.Assert(r, NotNil)
- f, err := fs.Open("worktree/.git")
+ f, err := fs.Open(fs.Join("worktree", ".git"))
c.Assert(err, IsNil)
all, err := ioutil.ReadAll(f)
c.Assert(err, IsNil)
- c.Assert(string(all), Equals, "gitdir: ../storage\n")
+ c.Assert(string(all), Equals, fmt.Sprintf("gitdir: %s\n", filepath.Join("..", "storage")))
cfg, err := r.Config()
c.Assert(err, IsNil)
- c.Assert(cfg.Core.Worktree, Equals, "../worktree")
+ c.Assert(cfg.Core.Worktree, Equals, filepath.Join("..", "worktree"))
}
func (s *RepositorySuite) TestInitStandardDotGit(c *C) {