Skip to content

Commit f35409d

Browse files
committed
bump version to 1.13.1 in package.json; add conditional git initialization in init.ts based on environment variable
1 parent 942c88c commit f35409d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zen-browser/surfer",
3-
"version": "1.13.0",
3+
"version": "1.13.1",
44
"description": "Simplifying building firefox forks!",
55
"main": "index.js",
66
"bin": {

src/commands/init.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ export const init = async (directory: Command | string): Promise<void> => {
3636

3737
version = version.trim().replace(/\\n/g, '')
3838

39+
if (process.env.ZEN_DOWNLOAD_DONT_INIT_GIT === '1') {
40+
log.info(
41+
'Skipping git initialization as ZEN_DOWNLOAD_DONT_INIT_GIT is set to 1'
42+
)
43+
return
44+
}
45+
3946
// TODO: Use bash on windows, this may significantly improve performance.
4047
// Still needs testing though
4148
log.info('Initializing git, this may take some time')

0 commit comments

Comments
 (0)