Exemplo n.º 1
0
func (s *BaseSuite) NewRepository(f *fixtures.Fixture) *Repository {
	r, err := NewFilesystemRepository(f.DotGit().Base())
	if err != nil {
		panic(err)
	}

	return r
}
Exemplo n.º 2
0
func (s *BaseSuite) NewRepository(f *fixtures.Fixture) *Repository {
	storage, err := filesystem.NewStorage(f.DotGit())
	if err != nil {
		panic(err)
	}

	r, err := NewRepository(storage)
	if err != nil {
		panic(err)
	}

	return r
}
Exemplo n.º 3
0
func (s *BaseSuite) GetLocalRepositoryURL(f *fixtures.Fixture) string {
	path := f.DotGit().Base()
	return fmt.Sprintf("file://%s", path)
}