@opencrvs/toolkit 2.0.2-rc.3152b53 → 2.0.2-rc.5a52b2b
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.
|
@@ -151,7 +151,7 @@ function cloneRepository(
|
|
|
151
151
|
repoUrl,
|
|
152
152
|
ref,
|
|
153
153
|
targetDir,
|
|
154
|
-
{ keepHistory = false
|
|
154
|
+
{ keepHistory = false } = {}
|
|
155
155
|
) {
|
|
156
156
|
const depthFlag = keepHistory ? '' : '--depth 1 '
|
|
157
157
|
execSync(
|
|
@@ -180,17 +180,12 @@ function cloneRepository(
|
|
|
180
180
|
process.exit(1)
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
execSync('git remote add upstream ' + repoUrl, {
|
|
190
|
-
cwd: targetDir,
|
|
191
|
-
stdio: 'inherit'
|
|
192
|
-
})
|
|
193
|
-
}
|
|
183
|
+
console.log("Removing 'origin' remote from " + targetDir + "...")
|
|
184
|
+
execSync('git remote remove origin', {
|
|
185
|
+
cwd: targetDir,
|
|
186
|
+
stdio: 'inherit'
|
|
187
|
+
})
|
|
188
|
+
|
|
194
189
|
}
|
|
195
190
|
|
|
196
191
|
const projectName = process.argv[2]
|
|
@@ -262,8 +257,7 @@ console.log(
|
|
|
262
257
|
|
|
263
258
|
try {
|
|
264
259
|
cloneRepository(INFRASTRUCTURE_REPO_URL, ref, infrastructureDirName, {
|
|
265
|
-
keepHistory: true
|
|
266
|
-
replaceOriginWithUpstream: true
|
|
260
|
+
keepHistory: true
|
|
267
261
|
})
|
|
268
262
|
} catch (err) {
|
|
269
263
|
console.error('Failed to clone the infrastructure repository:', err.message)
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|