regolith/storage.py
def push_git(store, path):
    """Pushes the local documents via git."""
    storedir, _ = os.path.split(path)
    cmd = ['git', 'add', '.']
    subprocess.check_call(cmd, cwd=storedir)
    cmd = ['git', 'commit', '-m', 'regolith auto-store commit']
    try:
        subprocess.check_call(cmd, cwd=storedir)
    except subprocess.CalledProcessError: 
        warn('Could not git commit to ' + storedir, RuntimeWarning)
        return
    cmd = ['git', 'push']
    try:
        subprocess.check_call(cmd, cwd=storedir)
    except subprocess.CalledProcessError: 
        warn('Could not git push from ' + storedir, RuntimeWarning)
        return
Pushes the local documents via git.
Pushes the local documents via git.
Pushes the local documents via git .
def push_git(store, path):
    storedir, _ = os.path.split(path)
    cmd = ['git', 'add', '.']
    subprocess.check_call(cmd, cwd=storedir)
    cmd = ['git', 'commit', '-m', 'regolith auto-store commit']
    try:
        subprocess.check_call(cmd, cwd=storedir)
    except subprocess.CalledProcessError: 
        warn('Could not git commit to ' + storedir, RuntimeWarning)
        return
    cmd = ['git', 'push']
    try:
        subprocess.check_call(cmd, cwd=storedir)
    except subprocess.CalledProcessError: 
        warn('Could not git push from ' + storedir, RuntimeWarning)
        return
def push_git ( store , path ) : storedir , _ = os . path . split ( path ) cmd = [ 'git' , 'add' , '.' ] subprocess . check_call ( cmd , cwd = storedir ) cmd = [ 'git' , 'commit' , '-m' , 'regolith auto-store commit' ] try : subprocess . check_call ( cmd , cwd = storedir ) except subprocess . CalledProcessError : warn ( 'Could not git commit to ' + storedir , RuntimeWarning ) return cmd = [ 'git' , 'push' ] try : subprocess . check_call ( cmd , cwd = storedir ) except subprocess . CalledProcessError : warn ( 'Could not git push from ' + storedir , RuntimeWarning ) return
Pushes the local documents via git.
Pushes the local documents via git .
"""Pushes the local documents via git."""
store
path