Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
feat(init): add empty unixfs dir to match go-ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 10, 2016
1 parent 0835f08 commit 5c7b448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/components/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ module.exports = function init (self) {
self._repo.version.set(VERSION, cb)
},
(cb) => self._repo.config.set(config, cb),
(cb) => {
// add empty unixfs dir object (go-ipfs assumes this exists)
(cb) => self.object.new('unixfs-dir', cb),
(node, cb) => {
if (typeof addDefaultAssets === 'function' && !opts.emptyRepo) {
return addDefaultAssets(self, opts.log, cb)
}
Expand Down

0 comments on commit 5c7b448

Please sign in to comment.