func (s *service) checkInfo(context *endly.Context, request *StatusRequest) (*StatusResponse, error) {
	source, err := context.ExpandResource(request.Source)
	if err != nil {
		return nil, err
	}
	switch request.Type {
	case "git":
		return s.git.checkInfo(context, request)
	case "svn":
		return s.svnService.checkInfo(context, request)
	case "local":
		return &StatusResponse{
			Info: &Info{
				Origin: request.Source.URL,
			},
		}, nil
	}
	return nil, fmt.Errorf("unsupported vc type: %v for URL %v", request.Type, source.URL)
}
checkInfo returns version control info
package vc
import (
	"fmt"
	"github.com/viant/endly"
	"github.com/viant/endly/system/exec"
	"github.com/viant/endly/system/storage"
	"github.com/viant/endly/system/storage/copy"
	"github.com/viant/toolbox"
	"github.com/viant/toolbox/url"
)
const (
	ServiceID = "version/control"
	CredentialKey = "***vc***"
)
type service struct {
	*endly.AbstractService
	*git
	*svnService
}