private List getCommitInfo()

in src/main/groovy/com/epam/esp/vcs/git/GitHelper.groovy [41:52]


    private List<String> getCommitInfo(project, hash) {
        OS os = OS.getOs()
        List<String> params = ['git', 'diff-tree', '--no-commit-id', '--name-only', '-r', hash].asList()
        List<String> processOut = new ArrayList<String>()
        def result = os.execCommandLine(params, processOut, config.getPath(project), 600)
        if (result == 0) {
            return processOut
        } else {
            def output = processOut.join('\n')
            throw new GitException("Unable to execute git command:\n${output}")
        }
    }