git ssb

39+

cel / git-ssb



Commit aac361c80b896a13e48a69e0393ca3208efeb303

Default created repo name to current directory.

Stephen Whitmore committed on 11/9/2016, 3:17:14 PM
Parent: 23a4bef6309656f08ae027f6ff5a79a2fcc6bf77

Files changed

bin.jschanged
bin.jsView
@@ -211,8 +211,12 @@
211211 if (hasRemote(remoteName))
212212 err(1, 'Remote \'' + remoteName + '\' already exists')
213213 u.getSbot(config, function (err, sbot) {
214214 if (err) throw err
215 +
216 + // If no name is given, use the current directory's name.
217 + if (!name) name = path.basename(process.cwd())
218 +
215219 var ssbGit = require('ssb-git-repo')
216220 ssbGit.createRepo(sbot, {
217221 upstream: upstream,
218222 name: name

Built with git-ssb-web