Skip to content

Commit 36de0ad

Browse files
committed
git-remote-helper initial release
1 parent 9e59959 commit 36de0ad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/lib/arweave.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ export async function updateRef(arweave, wallet, remoteURI, name, ref) {
4747
let tx = await arweave.createTransaction({ data: ref }, wallet);
4848
tx = addTransactionTags(tx, repoName, "update-ref");
4949
tx.addTag("ref", name);
50+
tx.addTag("Content-Type", "text/plain");
5051

5152
await arweave.transactions.sign(tx, wallet); // Sign transaction
52-
arweave.transactions.post(tx); // Post transaction
53+
return arweave.transactions.post(tx); // Post transaction
5354
}
5455

5556
export async function getRef(arweave, remoteURI, name) {
@@ -104,9 +105,9 @@ export async function pushGitObject(arweave, wallet, remoteURI, oid, object) {
104105

105106
while (!uploader.isComplete) {
106107
await uploader.uploadChunk();
107-
console.error(
108-
`${uploader.pctComplete}% complete, ${uploader.uploadedChunks}/${uploader.totalChunks}`
109-
);
108+
// console.error(
109+
// `${uploader.pctComplete}% complete, ${uploader.uploadedChunks}/${uploader.totalChunks}`
110+
// );
110111
}
111112
}
112113

0 commit comments

Comments
 (0)