diff options
| author | Jesse Ezell <[email protected]> | 2014-03-20 22:54:18 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-03-20 22:54:18 -0700 |
| commit | d78036fe24c9c746d3513f9e97f463f995aef0fd (patch) | |
| tree | b52130c4765374c2fd8161f86ced61a58351d29b /git_test.go | |
| parent | 37964e878f70229171f94668cb96f347b798e2b2 (diff) | |
refactor and cleanup code
Diffstat (limited to 'git_test.go')
| -rw-r--r-- | git_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git_test.go b/git_test.go index e6372fb..6a3aeaa 100644 --- a/git_test.go +++ b/git_test.go @@ -2,6 +2,7 @@ package git import ( "io/ioutil" + "path" "testing" "time" ) @@ -66,7 +67,7 @@ func updateReadme(t *testing.T, repo *Repository, content string) (*Oid, *Oid) { } tmpfile := "README" - err = ioutil.WriteFile(repo.Path()+"/"+tmpfile, []byte(content), 0644) + err = ioutil.WriteFile(path.Join(path.Dir(path.Dir(repo.Path())), tmpfile), []byte(content), 0644) checkFatal(t, err) idx, err := repo.Index() |
