git ssb

0+

kyrias-defunct / git-ssb



forked from cel / git-ssb

Commit f5fd2ea70ee09e4654acc6e8baf1a58e4420e9cd

Respect empty ssb_appname env var

Charles Lehner committed on 3/22/2016, 11:47:20 PM
Parent: f289d22bc4c2304b27215fcbff1dffcfad6f0e12

Files changed

lib/client.jschanged
lib/client.jsView
@@ -2,9 +2,9 @@
22 var ssbKeys = require('ssb-keys')
33 var proc = require('child_process')
44
55 module.exports = function createSSBClient(cb) {
6- var appName = process.env.ssb_appname ||
6+ var appName = 'ssb_appname' in process.env ? process.env.ssb_appname :
77 proc.spawnSync('git', ['config', 'ssb.appname'],
88 {encoding: 'utf8'}).stdout.trim()
99 var ssbConfig = require('ssb-config/inject')(appName)
1010 var keys = ssbKeys.loadOrCreateSync(path.join(ssbConfig.path, 'secret'))

Built with git-ssb-web