@tangelo/tangelo-configuration-toolkit 1.8.0-beta.4 → 1.8.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/package.json +2 -1
- package/src/modules/git/index.js +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangelo/tangelo-configuration-toolkit",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Tangelo Configuration Toolkit is a command-line toolkit which offers support for developing a Tangelo configuration.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tct": "bin/index.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"gulp-plumber": "^1.2.1",
|
|
35
35
|
"gulp-print": "^5.0.2",
|
|
36
36
|
"gulp-sass": "^5.0.0",
|
|
37
|
+
"gulp-simple-rename": "^0.1.3",
|
|
37
38
|
"gulp-sourcemaps": "^3.0.0",
|
|
38
39
|
"inquirer": "^8.2.0",
|
|
39
40
|
"istextorbinary": "^6.0.0",
|
package/src/modules/git/index.js
CHANGED
|
@@ -37,9 +37,12 @@ module.exports = function git (argv) {
|
|
|
37
37
|
|
|
38
38
|
if (argv.hasOwnProperty('init')) {
|
|
39
39
|
const remoteTdiUrl = `${_paths.gitremote}/${_paths.tdi}.git`;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
let branches;
|
|
41
|
+
|
|
42
|
+
try { branches = execSync('git ls-remote --heads ' + remoteTdiUrl, {encoding: 'UTF-8'}) }
|
|
43
|
+
catch (e) { _error(' '); } // execSync already prints an error to the console
|
|
44
|
+
|
|
45
|
+
branches = branches
|
|
43
46
|
.match(/refs\/heads\/\S+/g)
|
|
44
47
|
.map(s => s.replace('refs/heads/', ''))
|
|
45
48
|
.sort((a, b) => {
|