release-please 17.5.1 → 17.5.2
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.
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/local-github.js +6 -2
- package/package.json +1 -1
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '17.5.
|
|
39
|
+
exports.VERSION = '17.5.2';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -71,8 +71,12 @@ class LocalGitHub {
|
|
|
71
71
|
logger.info(`Using existing local repository at ${repoDir}...`);
|
|
72
72
|
}
|
|
73
73
|
const branch = gitHubApi.repository.defaultBranch;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const fetchArgs = ['fetch', 'origin'];
|
|
75
|
+
if (options.cloneDepth) {
|
|
76
|
+
fetchArgs.push('--depth', options.cloneDepth.toString());
|
|
77
|
+
}
|
|
78
|
+
logger.debug(`Executing: git ${fetchArgs.join(' ')}`);
|
|
79
|
+
await execFile('git', fetchArgs, { cwd: repoDir });
|
|
76
80
|
logger.debug(`Executing: git checkout ${branch}`);
|
|
77
81
|
await execFile('git', ['checkout', branch], { cwd: repoDir });
|
|
78
82
|
logger.debug(`Executing: git reset --hard origin/${branch}`);
|