git ssb

39+

cel / git-ssb



Tree: c51a7c32602d5b5501312e9ad0344b4a93fdd8f8

Files: c51a7c32602d5b5501312e9ad0344b4a93fdd8f8 / lib / fork.js

403 bytesRaw
1var u = require('./util')
2
3module.exports = function (argv) {
4 var repo
5 if (argv._.length == 1) repo = u.getDefaultRemote()
6 else if (argv._.length == 2) repo = u.getRemote(argv._.shift())
7 else return require('./help')('fork')
8 if (!repo) throw 'unable to find git-ssb upstream repo'
9 var name = argv._[0]
10 if (!name) throw 'missing remote name'
11 require('./create')(argv, name, null, repo)
12}
13

Built with git-ssb-web