'Initializes a directory for receiving a verbatim copy of git repo
This creates a directory if necessary, and either resets or inits
the repo'

def init(self):

    if (not os.path.exists(self.destination_dir)):
        logging.debug('Creating    directory    %s    for    git    repo    %s', self.destination_dir, self.uri)
        os.makedirs(self.destination_dir)
    os.chdir(self.destination_dir)
    if os.path.exists('.git'):
        logging.debug('Resetting    previously    existing    git    repo    at    %s    for    receiving    git    repo    %s', self.destination_dir, self.uri)
        self.git_cmd('reset    --hard')
    else:
        logging.debug('Initializing    new    git    repo    at    %s    for    receiving    git    repo    %s', self.destination_dir, self.uri)
        self.git_cmd('init')
