Commit aac361c80b896a13e48a69e0393ca3208efeb303
Default created repo name to current directory.
Stephen Whitmore committed on 11/9/2016, 3:17:14 PMParent: 23a4bef6309656f08ae027f6ff5a79a2fcc6bf77
Files changed
bin.js | changed |
bin.js | |||
---|---|---|---|
@@ -211,8 +211,12 @@ | |||
211 | 211 … | if (hasRemote(remoteName)) | |
212 | 212 … | err(1, 'Remote \'' + remoteName + '\' already exists') | |
213 | 213 … | u.getSbot(config, function (err, sbot) { | |
214 | 214 … | 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 … | + | ||
215 | 219 … | var ssbGit = require('ssb-git-repo') | |
216 | 220 … | ssbGit.createRepo(sbot, { | |
217 | 221 … | upstream: upstream, | |
218 | 222 … | name: name |
Built with git-ssb-web