Skip to content

Commit 9e59959

Browse files
committed
fix push command
1 parent 44d1f6f commit 9e59959

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

bin/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export default class Helper {
225225

226226
// OK
227227
async _fetch(oid, ref) {
228-
this.debug("fetching", ref, oid, this.dgit.shaToCid(oid));
228+
this.debug("fetching", ref, oid);
229229
await this.git.download(oid);
230230
}
231231

bin/lib/arweave.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ export async function fetchGitObjects(arweave, remoteURI) {
114114
const query = {
115115
op: "and",
116116
expr1: repoQuery(remoteURI),
117-
expr2: {
118-
op: "and",
119-
expr1: { op: "equals", expr1: "oid", expr2: oid },
120-
expr2: { op: "equals", expr1: "Type", expr2: "push-git-object" },
121-
},
117+
expr2: { op: "equals", expr1: "Type", expr2: "push-git-object" },
122118
};
123119
const txids = await arweave.arql(query);
124120
const objects = await Promise.all(

bin/lib/git.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export default class GitHelper {
7171
raw.writeUInt8(0);
7272
raw.writeBuffer(data);
7373

74-
const path = await this.path(oid + "0");
75-
await fs.ensureFile(path);
76-
fs.writeFileSync(path, zlib.deflateSync(raw.toBuffer()));
74+
return zlib.deflateSync(raw.toBuffer());
7775
}
7876

7977
// OK

0 commit comments

Comments
 (0)