diff options
Diffstat (limited to 'repository_test.go')
-rw-r--r-- | repository_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository_test.go b/repository_test.go index 2fecc98..3da11f6 100644 --- a/repository_test.go +++ b/repository_test.go @@ -348,7 +348,7 @@ func (s *RepositorySuite) TestPlainOpenBareRelativeGitDirFileTrailingGarbage(c * altDir, err := ioutil.TempDir("", "plain-open") c.Assert(err, IsNil) - err = ioutil.WriteFile(filepath.Join(altDir, ".git"), []byte(fmt.Sprintf("gitdir: %s\nTRAILING", dir)), 0644) + err = ioutil.WriteFile(filepath.Join(altDir, ".git"), []byte(fmt.Sprintf("gitdir: %s\nTRAILING", altDir)), 0644) c.Assert(err, IsNil) r, err = PlainOpen(altDir) |