regolith/storage.py
def sync_git(store, path):
    """Syncs the local documents via git."""
    storedir, _ = os.path.split(path)
    # get or update the storage
    if os.path.isdir(storedir):
        cmd = ['git', 'pull']
        cwd = storedir
    else:
        cmd = ['git', 'clone', store['url'], storedir]
        cwd = None
    subprocess.check_call(cmd, cwd=cwd)
Syncs the local documents via git.
Syncs the local documents via git.
Syncs the local documents via git .
def sync_git(store, path):
    storedir, _ = os.path.split(path)
    if os.path.isdir(storedir):
        cmd = ['git', 'pull']
        cwd = storedir
    else:
        cmd = ['git', 'clone', store['url'], storedir]
        cwd = None
    subprocess.check_call(cmd, cwd=cwd)
def sync_git ( store , path ) : storedir , _ = os . path . split ( path ) if os . path . isdir ( storedir ) : cmd = [ 'git' , 'pull' ] cwd = storedir else : cmd = [ 'git' , 'clone' , store [ 'url' ] , storedir ] cwd = None subprocess . check_call ( cmd , cwd = cwd )
Syncs the local documents via git.
Syncs the local documents via git .
"""Syncs the local documents via git.""" # get or update the storage
store
path