js-code-detector 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,7 +84,7 @@ async function cloneGitRepoAndGetDiff(gitRepoUrl, branchName, extra = {}) {
|
|
|
84
84
|
import_utils.logger.info("临时目录建立完成");
|
|
85
85
|
try {
|
|
86
86
|
let stderr, failed;
|
|
87
|
-
({ stderr, failed } = await cloneGitRepo(gitRepoUrl, branchName, today, import_constants.TARGET, { cloneType }));
|
|
87
|
+
({ stderr, failed } = await cloneGitRepo(gitRepoUrl, branchName, today, import_constants.TARGET, { cloneType, token }));
|
|
88
88
|
(0, import_handleExecaError.handleExecaError)({ failed, stderr });
|
|
89
89
|
import_utils.logger.ready("准备生成git_diff.txt文件");
|
|
90
90
|
({ stderr, failed } = await import_utils.execa.execa(`cd ${today}/${import_constants.TARGET} && git diff master..${branchName} --unified=0 --output=${import__.gitDiffFileName}`, { shell: true }));
|