瀏覽代碼

fixing travis

Daniel Zlotin 7 年之前
父節點
當前提交
2166e0276d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      scripts/release.js

+ 1
- 1
scripts/release.js 查看文件

@@ -38,7 +38,7 @@ function setupGit() {
38 38
 function calcNewVersion() {
39 39
   const packageVersion = semver.clean(process.env.npm_package_version);
40 40
   console.log(`package version: ${packageVersion}`);
41
-  exec.execSync(`git fetch`);
41
+  exec.execSync(`git fetch --unshallow`);
42 42
   const commitCount = exec.execSyncRead(`git rev-list --count ${ONLY_ON_BRANCH}`);
43 43
   console.log(`commits in ${ONLY_ON_BRANCH}: ${commitCount}`);
44 44
   return `${semver.major(packageVersion)}.${semver.minor(packageVersion)}.${commitCount}`;