@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, replaceOriginWithUpstream = 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
- if (replaceOriginWithUpstream) {
184
- console.log("Replacing 'origin' remote with 'upstream' in " + targetDir + "...")
185
- execSync('git remote remove origin', {
186
- cwd: targetDir,
187
- stdio: 'inherit'
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.2-rc.3152b53",
3
+ "version": "2.0.2-rc.5a52b2b",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {