Skip to content
Browse files

init: Allow clobbering repository with 'none'

  • Loading branch information...
1 parent 16c02cb commit 1bdb212393cc1d3ca31119e447e66ba8178dac55 @isaacs isaacs committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/init.js
View
5 lib/init.js
@@ -99,7 +99,10 @@ function init_ (data, folder, cb) {
, function (er, r) {
if (er) return cb(er)
if (r !== "none") {
- (data.repository = (data.repository || {})).url = r
+ data.repository = (data.repository || {})
+ data.repository.url = r
+ } else {
+ delete data.repository
}
cb()
}

0 comments on commit 1bdb212

Please sign in to comment.
Something went wrong with that request. Please try again.