package file

import (
	
	

	
	
	
	
)
ServeUploadPack serves a git-upload-pack request using standard output, input and error. This is meant to be used when implementing a git-upload-pack command.
func ( string) error {
	,  := transport.NewEndpoint()
	if  != nil {
		return 
	}
TODO: define and implement a server-side AuthMethod
	,  := server.DefaultServer.NewUploadPackSession(, nil)
	if  != nil {
		return fmt.Errorf("error creating session: %s", )
	}

	return common.ServeUploadPack(srvCmd, )
}
ServeReceivePack serves a git-receive-pack request using standard output, input and error. This is meant to be used when implementing a git-receive-pack command.
func ( string) error {
	,  := transport.NewEndpoint()
	if  != nil {
		return 
	}
TODO: define and implement a server-side AuthMethod
	,  := server.DefaultServer.NewReceivePackSession(, nil)
	if  != nil {
		return fmt.Errorf("error creating session: %s", )
	}

	return common.ServeReceivePack(srvCmd, )
}

var srvCmd = common.ServerCommand{
	Stdin:  os.Stdin,
	Stdout: ioutil.WriteNopCloser(os.Stdout),
	Stderr: os.Stderr,