425ca29 / receive.mjs
diff --git a/receive.mjs b/receive.mjs
index 50ff957..9c1d56c 100644
--- a/receive.mjs
+++ b/receive.mjs
@@ -40,8 +40,9 @@ export async function receivePush(root, identity, request, response, authorized)
: pipeline(request, child.stdin)
try {
await Promise.all([finished, upload])
- requireThat(authorized(), 'Push authorization expired or was revoked')
- await staged.publish()
+ const authorization = authorized()
+ requireThat(authorization, 'Push authorization expired or was revoked')
+ await staged.publish(authorization)
response.writeHead(200, {
'Content-Type': 'application/x-git-receive-pack-result', 'Cache-Control': 'no-store'
}).end(Buffer.concat(chunks))
Git ยท Social feed