git ssb

39+

cel / git-ssb



Commit 695c3f586ebab7f4567faf8f93c1c8f88dd93540

Install git-remote-ssb binary

Charles Lehner committed on 2/28/2016, 2:12:47 AM
Parent: 0909cc35a2eeda6e6e9daf955591007faa51d900

Files changed

bin.jschanged
package.jsonchanged
bin.jsView
@@ -2,8 +2,16 @@
22 ':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
33 // http://unix.stackexchange.com/questions/65235/universal-node-js-shebang
44 // vi: ft=javascript
55
6 +var path = require('path')
7 +
8 +var progname = path.basename(process.argv[1])
9 +if (progname == 'git-remote-ssb') {
10 + require('git-remote-ssb/git-remote-ssb')
11 + return
12 +}
13 +
614 var spawn = require('child_process').spawn
715 var ssbGit = require('ssb-git-repo')
816 var pull = require('pull-stream')
917
package.jsonView
@@ -1,9 +1,12 @@
11 {
22 "name": "git-ssb",
33 "version": "1.0.3",
44 "description": "git hosting on secure-scuttlebutt (ssb)",
5- "bin": "bin.js",
5 + "bin": {
6 + "git-ssb": "bin.js",
7 + "git-remote-ssb": "bin.js"
8 + },
69 "dependencies": {
710 "git-remote-ssb": "^1.0.0",
811 "git-ssb-web": "^1.0.0",
912 "pull-cat": "^1.1.8",

Built with git-ssb-web