Browse Source

fixing travis

Daniel Zlotin 7 years ago
parent
commit
2166e0276d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/release.js

+ 1
- 1
scripts/release.js View File

@@ -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}`;