# Path: ellen/utils/process.py
# def _shlex_split(cmd):
# def _call(cmd, env=None):
#     def __init__(self, cmds=None):
#     def __getattr__(self, name):
#     def __call__(self, *a, **kw):
#     def _parse_args(self, *a, **kw):
#     def bake(self, *a, **kw):
#     def call(self, cmdstr='', env=None):
# def git_with_path(git_dir=None, work_tree=None):
# def git_with_repo(repository):
# class Process(object):


from ellen.utils.process import git, git_with_repo
#!/usr/bin/env python
# -*- coding: utf-8 -*-



def clone_repository(url, path, bare=None, checkout_branch=None, mirror=None,
                     env=None, shared=None):
    """git clone command
    NOTE: 因为`git clone`在本机上直接做硬链接,速度比pygit2.clone_repository快
    """
    return git.clone(url, path,
                     b=checkout_branch,
                     bare=bare,
                     mirror=mirror,
                     env=env,
                     shared=shared)


def update_server_info(repository):

# Path: ellen/utils/process.py
# def _shlex_split(cmd):
# def _call(cmd, env=None):
#     def __init__(self, cmds=None):
#     def __getattr__(self, name):
#     def __call__(self, *a, **kw):
#     def _parse_args(self, *a, **kw):
#     def bake(self, *a, **kw):
#     def call(self, cmdstr='', env=None):
# def git_with_path(git_dir=None, work_tree=None):
# def git_with_repo(repository):
# class Process(object):


# Path: ellen/git/clone.py
from ellen.utils.process import git, git_with_repo

#!/usr/bin/env python
# -*- coding: utf-8 -*-



def clone_repository(url, path, bare=None, checkout_branch=None, mirror=None,
                     env=None, shared=None):
    """git clone command
    NOTE: 因为`git clone`在本机上直接做硬链接,速度比pygit2.clone_repository快
    """
    return git.clone(url, path,
                     b=checkout_branch,
                     bare=bare,
                     mirror=mirror,
                     env=env,
                     shared=shared)


def update_server_info(repository):

    git = git_with_repo(repository)