Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit 96db4a5

Browse files
committed
manifestSources/CSVSpreadsheet: allow specifying a custom branch in the spredsheet. See #115
1 parent 9b169d4 commit 96db4a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

containers/base/javascript/node/manifestSources/CSVSpreadsheet.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ var CSVFamily = (function() {
113113

114114
Object.defineProperties(_p, {
115115
upstream: notImplementedGetter('upstream')
116+
, branch: notImplementedGetter('branch')
116117
, name: notImplementedGetter('name')
117118
, nameConfirmed: notImplementedGetter('nameConfirmed')
118119
, fontfilesPrefix: notImplementedGetter('fontfilesPrefix')
@@ -167,10 +168,11 @@ var CSVFamily = (function() {
167168
}
168169
, enumerable: true
169170
}
171+
170172
, referenceName: {
171173
get: function() {
172174
if(this.repoType === 'git')
173-
return 'master';
175+
return this.branch || 'master'; // default to master
174176
// make this explicit if usable for other repo types
175177
throw new Error('"referenceName" not implemented for repoType: ' + this.repoType);
176178
}
@@ -207,6 +209,7 @@ var CSVData = (function() {
207209
, 'family': 'name' // A family name "with spaces"
208210
, 'family name is confirmed as good?': 'nameConfirmed' // "Passed" is true everything else is false
209211
, 'upstream': 'upstream' // starts with 'http://' or 'https://' (or 'git://'?)
212+
, 'branch': 'branch' // used only via referenceName
210213
, 'fontfiles prefix': 'fontfilesPrefix' // seems like problematic data in the sheet
211214
, 'genre': 'genre'
212215
, 'designer': 'designer'

0 commit comments

Comments
 (0)