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

from ellen.utils.process import call


def push(repository, remote, ref):
    cmd = ['push', remote, ref]
    errcode = call(repository, cmd)
    return errcode

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

from ellen.utils.process import call


def push(repository, remote, ref, _env=None):
    cmd = ['push', remote, ref]
    errcode = call(repository, cmd, env=_env)
    return errcode

Add env to push.