示例#1
0
def fetch(ui, url, path, *args, **opts):
    if url.startswith("git+ssh://"):
        url = url[9:]
    
    """ return git cmd path """
    try:
        cmd = locate_program("git", raise_error=True)
    except ValueError, e:
        raise VendorError(e)
示例#2
0
def fetch(ui, url, path, *args, **opts):
    """ return git cmd path """
    if url.startswith("hg+ssh://"):
        url = url[8:]
    else:
        url = url.replace("hg://", "http://")
    try:
        cmd = locate_program("hg", raise_error=True)
    except ValueError, e:
        raise VendorError(e)
示例#3
0
文件: git.py 项目: mikeal/couchapp
def git_clone(ui, url):
    """ return git cmd path """
    try:
        cmd = locate_program("git", raise_error=True)
    except ValueError, e:
        raise VendorError(e)