(c *C)
| 519 | } |
| 520 | |
| 521 | func (s *RemoteSuite) TestString(c *C) { |
| 522 | r := NewRemote(nil, &config.RemoteConfig{ |
| 523 | Name: "foo", |
| 524 | URLs: []string{"https://github.com/git-fixtures/basic.git"}, |
| 525 | }) |
| 526 | |
| 527 | c.Assert(r.String(), Equals, ""+ |
| 528 | "foo\thttps://github.com/git-fixtures/basic.git (fetch)\n"+ |
| 529 | "foo\thttps://github.com/git-fixtures/basic.git (push)", |
| 530 | ) |
| 531 | } |
| 532 | |
| 533 | func (s *RemoteSuite) TestPushToEmptyRepository(c *C) { |
| 534 | url, clean := s.TemporalDir() |