Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
Clone a repo to a temporal folder and return the path.
    

        def clone(vcs, quiet=False):
    """Clone a repo to a temporal folder and return the path.
    """
    location = tempfile.mkdtemp()
    shutil.rmtree(location)  # Path must not exists
    if not quiet:
        print('Cloning from {0}'.format(vcs.url))

    try:
        subprocess.check_call([vcs.type, 'clone', vcs.url, location])
    except:
        return None
    return location
        


src/c/o/cookiecutter-0.7.1/cookiecutter/main.py   cookiecutter(Download)
from .prompt import prompt_for_config
from .generate import generate_context, generate_files
from .vcs import clone
 
logger = logging.getLogger(__name__)
    if "git@" in input_dir or "https://" in input_dir:
        repo_dir = clone(
            repo_url=input_dir,
            checkout=checkout,
            clone_to_dir=config_dict['cookiecutters_dir']

src/c/o/cookiecutter-HEAD/cookiecutter/main.py   cookiecutter(Download)
from .prompt import prompt_for_config
from .generate import generate_context, generate_files
from .vcs import clone
 
logger = logging.getLogger(__name__)
    if "git@" in input_dir or "https://" in input_dir:
        repo_dir = clone(
            repo_url=input_dir,
            checkout=checkout,
            clone_to_dir=config_dict['cookiecutters_dir']

src/v/o/Voodoo-1.3.5/voodoo/main.py   Voodoo(Download)
from ._compat import to_unicode
from .cli import prompt_bool, prompt
from .vcs import get_vcs_from_url, clone
from .helpers import (
    pformat, make_dirs, create_file, copy_file, unormalize, read_file,
    try:
        if vcs:
            src_path = clone(vcs, quiet)
            if not src_path:
                return

src/v/o/Voodoo-HEAD/voodoo/main.py   Voodoo(Download)
from ._compat import to_unicode
from .cli import prompt_bool, prompt
from .vcs import get_vcs_from_url, clone
from .helpers import (
    pformat, make_dirs, create_file, copy_file, unormalize, read_file,
    try:
        if vcs:
            src_path = clone(vcs, quiet)
            if not src_path:
                return