示例#1
0
    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)
示例#2
0
    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)
示例#3
0
文件: __init__.py 项目: lelit/tailor
    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)
示例#4
0
文件: __init__.py 项目: yut148/tailor
    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)