Skip to content

Commit

Permalink
Disable "ipfs add -rn" with tracking bug.
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
  • Loading branch information
hackergrrl committed Jun 1, 2016
1 parent af57caf commit a438cca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,19 @@ You can now refer to the added file in a gateway, like so:
trickle, _, _ := req.Option(trickleOptionName).Bool()
wrap, _, _ := req.Option(wrapOptionName).Bool()
hash, _, _ := req.Option(onlyHashOptionName).Bool()
recursive, _, _ := req.Option("recursive").Bool()
hidden, _, _ := req.Option(hiddenOptionName).Bool()
silent, _, _ := req.Option(silentOptionName).Bool()
chunker, _, _ := req.Option(chunkerOptionName).String()
dopin, _, _ := req.Option(pinOptionName).Bool()

// Temporarily disabled. See https://github.com/ipfs/go-ipfs/issues/2784
if hash && recursive {
err = fmt.Errorf("Recursive hash-only functionality temporarily disabled.\n\nSee https://github.com/ipfs/go-ipfs/issues/2784")
res.SetError(err, cmds.ErrClient)
return
}

if hash {
nilnode, err := core.NewNode(n.Context(), &core.BuildCfg{
//TODO: need this to be true or all files
Expand Down

0 comments on commit a438cca

Please sign in to comment.