Skip to content

Commit

Permalink
add hint why we need this workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenKelevra committed Jul 10, 2020
1 parent 4baf9d7 commit 080a3e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/rsync2cluster.sh
Expand Up @@ -258,7 +258,8 @@ function ipfs_mfs_add_file() {
[ -z "$2" ] && fail "ipfs_mfs_add_file() was called with an empty second argument" 281
[ ! -f "$1" ] && fail "ipfs_mfs_add_file() was called with a path to a file which didn't exist: '$1'" 282
local _cid=""


# workaround for https://github.com/ipfs/go-ipfs/issues/7532
if ! _cid=$(ipfs_api add --chunker "$ipfs_chunker" --hash "$ipfs_hash" --cid-version "$ipfs_cid" --quieter "$1"); then
fail "ipfs_mfs_add_file() could not add the file '$1' to ipfs" 283
elif ! ipfs_api files cp "/ipfs/$_cid" "$2" >/dev/null 2>&1; then
Expand Down

1 comment on commit 080a3e9

@RubenKelevra
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added link to ipfs/kubo#7532 in the source code

Please sign in to comment.