At the time this program was written, there was no support for file modes in the go daemon. It was in the api, but had no effect.
If the .git CBOR-DAG for each commit, there is a modes tree which has the mode for each file.
In the 0.6. js daemon release video [ToDo: find link], it says mode metadata is now saved in unixfs.
If this is working in the js-api then store the file information in that metadata and remove the modes DAG from the commit.
At the time this program was written, there was no support for file modes in the go daemon. It was in the api, but had no effect.
If the
.gitCBOR-DAG for each commit, there is amodestree which has the mode for each file.In the 0.6. js daemon release video [ToDo: find link], it says mode metadata is now saved in unixfs.
If this is working in the js-api then store the file information in that metadata and remove the
modesDAG from the commit.