diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-02 00:44:06 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-02 00:44:06 +0100 |
commit | 6996381ae43936e7365395e90c8f93372e49be9f (patch) | |
tree | ed0d9441157a62230b0b9ca57ef600fd2ba99f76 /commit_test.go | |
parent | c15bf1dff332873644290db0e186b8f5ad9b8fb2 (diff) | |
download | go-git-6996381ae43936e7365395e90c8f93372e49be9f.tar.gz |
BaseSuite improvements, usage of file:// proto
Diffstat (limited to 'commit_test.go')
-rw-r--r-- | commit_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commit_test.go b/commit_test.go index 40e8973..ed240e8 100644 --- a/commit_test.go +++ b/commit_test.go @@ -132,9 +132,9 @@ func (s *SuiteCommit) TestString(c *C) { func (s *SuiteCommit) TestStringMultiLine(c *C) { hash := plumbing.NewHash("e7d896db87294e33ca3202e536d4d9bb16023db3") - s.buildRepositories(c, fixtures.ByURL("https://github.com/src-d/go-git.git")) + r := s.NewRepositoryFromPackfile(fixtures.ByURL("https://github.com/src-d/go-git.git").One()) - commit, err := s.Repositories["https://github.com/src-d/go-git.git"].Commit(hash) + commit, err := r.Commit(hash) c.Assert(err, IsNil) c.Assert(commit.String(), Equals, ""+ |