# Path: groundstation/proto/git_object_pb2.py
# class GitObject(_message.Message):
#   __metaclass__ = _reflection.GeneratedProtocolMessageType
#   DESCRIPTOR = _GITOBJECT
# 
#   # @@protoc_insertion_point(class_scope:GitObject)
# 
# Path: groundstation/logger.py
#     LEVEL = getattr(logging, os.getenv("GROUNDSTATION_DEBUG"))
#     LEVEL = logging.DEBUG
# CONSOLE_FORMATTER = _get_formatter()
# CONSOLE_HANDLER = _get_console_handler()
# LOGGERS = {}  # Cache for instanciated loggers
# def fix_oid(oid):
# def _get_formatter():
# def _get_console_handler():
# def getLogger(name):  # Not threadsafe


import pygit2
import groundstation.utils as utils
from groundstation.proto.git_object_pb2 import GitObject
from groundstation import logger

log = logger.getLogger(__name__)


class UnsolicitedTransfer(Exception):
    pass


def handle_transfer(self):

# Path: groundstation/proto/git_object_pb2.py
# class GitObject(_message.Message):
#   __metaclass__ = _reflection.GeneratedProtocolMessageType
#   DESCRIPTOR = _GITOBJECT
# 
#   # @@protoc_insertion_point(class_scope:GitObject)
# 
# Path: groundstation/logger.py
#     LEVEL = getattr(logging, os.getenv("GROUNDSTATION_DEBUG"))
#     LEVEL = logging.DEBUG
# CONSOLE_FORMATTER = _get_formatter()
# CONSOLE_HANDLER = _get_console_handler()
# LOGGERS = {}  # Cache for instanciated loggers
# def fix_oid(oid):
# def _get_formatter():
# def _get_console_handler():
# def getLogger(name):  # Not threadsafe


# Path: groundstation/transfer/response_handlers/transfer.py
import pygit2
import groundstation.utils as utils
from groundstation.proto.git_object_pb2 import GitObject
from groundstation import logger


log = logger.getLogger(__name__)


class UnsolicitedTransfer(Exception):
    pass


def handle_transfer(self):

    git_pb = GitObject()