def __init__(self, repo, command=None, cwd=None): """ Initialize an ExternalCommand instance tied to a GitRepository from which it inherits a set of environment variables to use for each execute(). """ self.repo = repo return ExternalCommand.__init__(self, command, cwd)
def __init__(self, repo, command=None, cwd=None): """ Initialize an ExternalCommand instance tied to a GitRepository from which it inherits a set of environment variables to use for each execute(). """ # escape % signs in the command command = [c.replace("%","%%") for c in command] self.repo = repo return ExternalCommand.__init__(self, command, cwd)
def __init__(self, repo, command=None, cwd=None): """ Initialize an ExternalCommand instance tied to a GitRepository from which it inherits a set of environment variables to use for each execute(). """ # escape % signs in the command command = [c.replace("%", "%%") for c in command] self.repo = repo return ExternalCommand.__init__(self, command, cwd)