Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

init: Allow clobbering repository with 'none'

  • Loading branch information...
commit 1bdb212393cc1d3ca31119e447e66ba8178dac55 1 parent 16c02cb
@isaacs isaacs authored
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()
}
Please sign in to comment.
Something went wrong with that request. Please try again.